1 #ifndef __WUMathConsts_h__
2 #define __WUMathConsts_h__
5 #include "BasicTypes/WUMathConsts.h"
8 const float kfPI = 3.1415926535898f; // PI, single precision
9 const double kdPI = 3.1415926535897932384626433832795; // PI, double precision
11 const float kf2PI = 6.2831853071796f; // 2*PI
12 const double kd2PI = 6.283185307179586476925286766559; // 2*PI
14 const float kfhalfPI = 1.5707963267949f; // 0.5*PI
15 const double kdhalfPI = 1.57079632679489661923; // 0.5*PI
17 const double kdLn2 = 0.69314718055994530942; // natural log(2.0)
18 const double kdOneOverLn2 = 1.4426950408889634073599246810019; // natural (1.0/log(2.0)) - for multiply log() to get it as with base 2
20 const double kdLog2 = 0.301029995663981; // log10(2.0)
21 const double kdOneOverLog2 = 3.321928094887363; // (1.0/log10(2.0)) - for multiply log() to get it as with base 2
23 const double kdExponent = 2.718281828459045235360287471352; // e
25 const double kdSqrt2 = 1.41421356237309504880; // sqrt(2)
29 #endif //__WUMathConsts_h__