diff options
author | bonmas14 <bonmas14@gmail.com> | 2025-08-04 16:08:22 +0000 |
---|---|---|
committer | bonmas14 <bonmas14@gmail.com> | 2025-08-04 16:08:22 +0000 |
commit | b16ca14911ad5df44ae499eed2d90c3ca2da4eb0 (patch) | |
tree | 685d64ea40f66b72c994bcfd3de0c5015a9cf36a /src/un_math.c | |
parent | ed1cab483e49e29396178a33dea51773aa770855 (diff) | |
download | ungrateful-b16ca14911ad5df44ae499eed2d90c3ca2da4eb0.tar.gz ungrateful-b16ca14911ad5df44ae499eed2d90c3ca2da4eb0.zip |
Vecs and tests
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 |