From b16ca14911ad5df44ae499eed2d90c3ca2da4eb0 Mon Sep 17 00:00:00 2001 From: bonmas14 Date: Mon, 4 Aug 2025 16:08:22 +0000 Subject: Vecs and tests --- src/un_math.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/un_math.c') 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 -- cgit v1.2.3-70-g09d2