Make Pi constexpr in RageMath.h
This is the same value used in the vorbis code.
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
#define PI (3.141592653589793f)
|
||||
constexpr float PI = 3.1415926536f;
|
||||
#define DegreeToRadian( degree ) ((degree) * (PI / 180.0f))
|
||||
#define RadianToDegree( radian ) ((radian) * (180.0f / PI))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user