more F16 math

This commit is contained in:
Jorijn van der Graaf 2026-03-19 02:19:01 +01:00
commit e3cd40fa90
5 changed files with 1026 additions and 502 deletions

View file

@ -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;
}