Renamed constants to new style.

This commit is contained in:
Branimir Karadžić
2017-06-09 20:08:38 -07:00
parent 4021acc6b8
commit 31b09521a6
7 changed files with 30 additions and 28 deletions

View File

@@ -8,15 +8,16 @@
namespace bx
{
const float pi = 3.1415926535897932384626433832795f;
const float invPi = 1.0f/pi;
const float piHalf = 1.5707963267948966192313216916398f;
const float sqrt2 = 1.4142135623730950488016887242097f;
const float invLogNat2 = 1.4426950408889634073599246810019f;
const float kPi = 3.1415926535897932384626433832795f;
const float kPi2 = 6.2831853071795864769252867665590f;
const float kInvPi = 1.0f/kPi;
const float kPiHalf = 1.5707963267948966192313216916398f;
const float kSqrt2 = 1.4142135623730950488016887242097f;
const float kInvLogNat2 = 1.4426950408889634073599246810019f;
#if BX_COMPILER_MSVC
const float huge = float(HUGE_VAL);
const float kHuge = float(HUGE_VAL);
#else
const float huge = HUGE_VALF;
const float kHuge = HUGE_VALF;
#endif // BX_COMPILER_MSVC
float fabsolute(float _a)