From 2f5321ddfb050b9145b9ff4c7b851ba18ac9e708 Mon Sep 17 00:00:00 2001 From: Azaezel Date: Fri, 14 Oct 2016 13:40:53 -0500 Subject: [PATCH] tabs/space + transcription typofix --- Engine/source/math/mEase.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Engine/source/math/mEase.h b/Engine/source/math/mEase.h index d4dc4636e..8689f7fbb 100644 --- a/Engine/source/math/mEase.h +++ b/Engine/source/math/mEase.h @@ -289,15 +289,16 @@ inline F32 mEaseInOutExpo(F32 t, F32 b, F32 c, F32 d) // t: current time, b: beginning value, c: change in position, d: duration inline F32 mEaseInCirc (F32 t, F32 b, F32 c, F32 d) { - t/=d; + t/=d; return -c * (mSqrt(1 - (t)*t) - 1) + b; }; // circular easing out - decelerating to zero velocity inline F32 mEaseOutCirc (F32 t, F32 b, F32 c, F32 d) { - t/=d; - return c * mSqrt(1 - (t-1)*t) + b; + t/=d; + t--; + return c * mSqrt(1 - (t)*t) + b; }; // circular easing in/out - acceleration until halfway, then deceleration @@ -305,7 +306,7 @@ inline F32 mEaseInOutCirc(F32 t, F32 b, F32 c, F32 d) { if ((t/=d/2) < 1) return -c/2 * (mSqrt(1 - t*t) - 1) + b; - t-=2; + t-=2; return c/2 * (mSqrt(1 - (t)*t) + 1) + b; };