From 7ac77f5b782f6155015486010f2289132d9633d3 Mon Sep 17 00:00:00 2001 From: sukibaby <163092272+sukibaby@users.noreply.github.com> Date: Wed, 17 Jul 2024 22:40:22 -0700 Subject: [PATCH] Make Pi constexpr in RageMath.h This is the same value used in the vorbis code. --- src/RageMath.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RageMath.h b/src/RageMath.h index 342ae39e99..530ed85210 100644 --- a/src/RageMath.h +++ b/src/RageMath.h @@ -5,7 +5,7 @@ #include -#define PI (3.141592653589793f) +constexpr float PI = 3.1415926536f; #define DegreeToRadian( degree ) ((degree) * (PI / 180.0f)) #define RadianToDegree( radian ) ((radian) * (180.0f / PI))