63 static float QuadIn(
float t,
const float b,
const float c,
const float d)
69 static float QuadOut(
float t,
const float b,
const float c,
const float d)
72 return -c * t*(t-2) + b;
75 static float QuadInOut(
float t,
const float b,
const float c,
const float d)
81 return -c/2 * (t*(t-2) - 1) + b;
84 static float CubicIn(
float t,
const float b,
const float c,
const float d)
90 static float CubicOut(
float t,
const float b,
const float c,
const float d)
93 return c*(t*t*t + 1) + b;
96 static float CubicInOut(
float t,
const float b,
const float c,
const float d)
100 return c/2*t*t*t + b;
102 return c/2*(t*t*t + 2) + b;
105 static float QuartIn(
float t,
const float b,
const float c,
const float d)
108 return c*t*t*t*t + b;
111 static float QuartOut(
float t,
const float b,
const float c,
const float d)
114 return -c*(t*t*t*t - 1) + b;
117 static float QuartInOut(
float t,
const float b,
const float c,
const float d)
121 return c/2*t*t*t*t + b;
123 return -c/2 * (t*t*t*t - 2) + b;
126 static float QuintIn(
float t,
const float b,
const float c,
const float d)
129 return c*t*t*t*t*t + b;
132 static float QuintOut(
float t,
const float b,
const float c,
const float d)
135 return c*(t*t*t*t*t + 1) + b;
138 static float QuintInOut(
float t,
const float b,
const float c,
const float d)
142 return c/2*t*t*t*t*t + b;
144 return c/2*(t*t*t*t*t + 2) + b;
Generic easing functions.
Definition: Ease.h:61
static float CubicOut(float t, const float b, const float c, const float d)
Definition: Ease.h:90
static float QuadInOut(float t, const float b, const float c, const float d)
Definition: Ease.h:75
static float QuartInOut(float t, const float b, const float c, const float d)
Definition: Ease.h:117
static float CubicIn(float t, const float b, const float c, const float d)
Definition: Ease.h:84
static float CubicInOut(float t, const float b, const float c, const float d)
Definition: Ease.h:96
static float QuintInOut(float t, const float b, const float c, const float d)
Definition: Ease.h:138
static float QuartIn(float t, const float b, const float c, const float d)
Definition: Ease.h:105
static float QuadIn(float t, const float b, const float c, const float d)
Definition: Ease.h:63
static float QuartOut(float t, const float b, const float c, const float d)
Definition: Ease.h:111
static float QuintOut(float t, const float b, const float c, const float d)
Definition: Ease.h:132
static float QuadOut(float t, const float b, const float c, const float d)
Definition: Ease.h:69
static float QuintIn(float t, const float b, const float c, const float d)
Definition: Ease.h:126