summaryrefslogtreecommitdiffhomepage
path: root/src/easings.h
diff options
context:
space:
mode:
authorLeandro Gabriel <[email protected]>2019-08-03 06:07:41 -0300
committerRay <[email protected]>2019-08-03 11:07:41 +0200
commit89c16baf182aed201b75b99a253c0b074ffffeed (patch)
tree90edca66ea7b4c9c83aab26daa2496b770206ab5 /src/easings.h
parent68ffbc06c74b717946d1bcb3a7e433d5fb859c85 (diff)
downloadraylib-89c16baf182aed201b75b99a253c0b074ffffeed.tar.gz
raylib-89c16baf182aed201b75b99a253c0b074ffffeed.zip
Replace tabs with spaces and update year of copyright notices (#927)
* Update year of copyright notices * Fix mistake in comment * Fix typo ("algorythms") * Replace tabs with spaces * Remove trailing whitespace and fix mistake in comment * Fix ExportImageAsCode missing comment rectangle corner * Replace tab with spaces * Replace tabs with spaces
Diffstat (limited to 'src/easings.h')
-rw-r--r--src/easings.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/easings.h b/src/easings.h
index 1b08af0a..f6c384b0 100644
--- a/src/easings.h
+++ b/src/easings.h
@@ -135,7 +135,7 @@ EASEDEF float EaseQuadOut(float t, float b, float c, float d) { t /= d; return (
EASEDEF float EaseQuadInOut(float t, float b, float c, float d)
{
if ((t/=d/2) < 1) return (((c/2)*(t*t)) + b);
- return (-c/2.0f*(((t - 1.0f)*(t - 3.0f)) - 1.0f) + b);
+ return (-c/2.0f*(((t - 1.0f)*(t - 3.0f)) - 1.0f) + b);
}
// Exponential Easing functions
@@ -147,7 +147,7 @@ EASEDEF float EaseExpoInOut(float t, float b, float c, float d)
if (t == d) return (b + c);
if ((t/=d/2.0f) < 1.0f) return (c/2.0f*pow(2.0f, 10.0f*(t - 1.0f)) + b);
- return (c/2.0f*(-pow(2.0f, -10.0f*(t - 1.0f)) + 2.0f) + b);
+ return (c/2.0f*(-pow(2.0f, -10.0f*(t - 1.0f)) + 2.0f) + b);
}
// Back Easing functions