This commit is contained in:
Jorijn van der Graaf 2026-02-11 03:07:31 +01:00
commit d2343dde82

View file

@ -286,6 +286,12 @@ namespace Crafter {
} }
} }
constexpr void Invert() {
for(std::uint32_t i = 0; i < Len; i++) {
this->v[i] = -this->v[i];
}
}
constexpr float Length() const { constexpr float Length() const {
float Result = LengthSq(); float Result = LengthSq();
return std::sqrtf(Result); return std::sqrtf(Result);