From 9987c5522b865bb2c1e410eff090bb3a42fd1ac9 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Mon, 26 Dec 2022 14:11:24 -0600 Subject: [PATCH] feat(math): add CMath::fint --- tempest/math/CMath.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tempest/math/CMath.hpp b/tempest/math/CMath.hpp index 8fc85c4..97cd591 100644 --- a/tempest/math/CMath.hpp +++ b/tempest/math/CMath.hpp @@ -13,6 +13,10 @@ class CMath { static constexpr float OO_TWO_PI = 1.0f / TWO_PI; // Static functions + static int32_t fint(float n) { + return static_cast(n); + } + static uint32_t fuint(float n) { return static_cast(n); }