made it I think faster

This commit is contained in:
yggdrasil75
2026-01-21 20:25:25 -05:00
parent 0aeed604a7
commit 5ef07c6af5
2 changed files with 136 additions and 49 deletions

View File

@@ -495,6 +495,14 @@ public:
if (z > 0.f) mask |= 4;
return mask;
}
uint8_t calculateInvOctantMask() const {
uint8_t mask = 0;
if (x < 0.f) mask |= 1;
if (y < 0.f) mask |= 2;
if (z < 0.f) mask |= 4;
return mask;
}
T maxComp() const {
return std::max({x, y, z});