invert
This commit is contained in:
parent
23b8c8f107
commit
d2343dde82
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue