diff options
Diffstat (limited to 'src/un_math.c')
-rw-r--r-- | src/un_math.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/un_math.c b/src/un_math.c index 772ef70..42a1c4b 100644 --- a/src/un_math.c +++ b/src/un_math.c @@ -6,7 +6,7 @@ real un_m_lerpr(real a, real b, real t) { real un_m_ease_isiner(real t) { #if defined(UN_DOUBLE_PRECISION) - return 1.0 - cos((t * PI) / 2.0); + return 1.0 - cos((t * PI_D) / 2.0); #else return 1.0 - cosf((t * PI) / 2.0); #endif @@ -14,7 +14,7 @@ real un_m_ease_isiner(real t) { real un_m_ease_iosiner(real t) { #if defined(UN_DOUBLE_PRECISION) - return sin((t * PI) / 2.0f); + return sin((t * PI_D) / 2.0f); #else return sinf((t * PI) / 2.0f); #endif @@ -22,7 +22,7 @@ real un_m_ease_iosiner(real t) { real un_m_ease_osiner(real t) { #if defined(UN_DOUBLE_PRECISION) - return -(cos(t * PI) - 1.0) / 2.0; + return -(cos(t * PI_D) - 1.0) / 2.0; #else return -(cosf(t * PI) - 1.0) / 2.0; #endif |