more F16 math
This commit is contained in:
parent
fe016adc18
commit
e3cd40fa90
5 changed files with 1026 additions and 502 deletions
|
|
@ -317,10 +317,8 @@ namespace Crafter {
|
|||
constexpr void Normalize() {
|
||||
T fLength = Length();
|
||||
|
||||
if (fLength > 0) {
|
||||
fLength = 1.0f / fLength;
|
||||
}
|
||||
|
||||
fLength = 1.0f / fLength;
|
||||
|
||||
for(std::uint32_t i = 0; i < Len; i++) {
|
||||
this->v[i] *= fLength;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue