diff --git a/interfaces/Crafter.Math-Vector.cppm b/interfaces/Crafter.Math-Vector.cppm index e961638..d7ec465 100755 --- a/interfaces/Crafter.Math-Vector.cppm +++ b/interfaces/Crafter.Math-Vector.cppm @@ -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 { float Result = LengthSq(); return std::sqrtf(Result);