diff --git a/tempest/math/CMath.hpp b/tempest/math/CMath.hpp index 0054a7d..48a8ba8 100644 --- a/tempest/math/CMath.hpp +++ b/tempest/math/CMath.hpp @@ -29,6 +29,10 @@ class CMath { return static_cast(n + 0.5f); } + static uint32_t fuint_pi(float n) { + return static_cast(n + 0.99994999); + } + static float sqrt(float x) { STORM_ASSERT(x >= 0.0f); return ::sqrt(x);