mirror of
https://github.com/thunderbrewhq/typhoon.git
synced 2025-12-12 02:22:30 +00:00
feat(math): add CMath::fint
This commit is contained in:
parent
c6a7e2c771
commit
9987c5522b
1 changed files with 4 additions and 0 deletions
|
|
@ -13,6 +13,10 @@ class CMath {
|
||||||
static constexpr float OO_TWO_PI = 1.0f / TWO_PI;
|
static constexpr float OO_TWO_PI = 1.0f / TWO_PI;
|
||||||
|
|
||||||
// Static functions
|
// Static functions
|
||||||
|
static int32_t fint(float n) {
|
||||||
|
return static_cast<int32_t>(n);
|
||||||
|
}
|
||||||
|
|
||||||
static uint32_t fuint(float n) {
|
static uint32_t fuint(float n) {
|
||||||
return static_cast<uint32_t>(n);
|
return static_cast<uint32_t>(n);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue