mirror of
https://github.com/thunderbrewhq/typhoon.git
synced 2025-12-12 02:22:30 +00:00
feat(math): add CMath::fuint_pi
This commit is contained in:
parent
444f05b59a
commit
ff28fae9b7
1 changed files with 4 additions and 0 deletions
|
|
@ -29,6 +29,10 @@ class CMath {
|
|||
return static_cast<uint32_t>(n + 0.5f);
|
||||
}
|
||||
|
||||
static uint32_t fuint_pi(float n) {
|
||||
return static_cast<uint32_t>(n + 0.99994999);
|
||||
}
|
||||
|
||||
static float sqrt(float x) {
|
||||
STORM_ASSERT(x >= 0.0f);
|
||||
return ::sqrt(x);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue