Code tweaks
This commit is contained in:
parent
d21422687a
commit
e36a80f730
1 changed files with 3 additions and 2 deletions
|
@ -1474,9 +1474,10 @@ Rectangle GetCollisionRec(Rectangle rec1, Rectangle rec2)
|
||||||
// NOTE: Required for DrawLineBezier()
|
// NOTE: Required for DrawLineBezier()
|
||||||
static float EaseCubicInOut(float t, float b, float c, float d)
|
static float EaseCubicInOut(float t, float b, float c, float d)
|
||||||
{
|
{
|
||||||
if ((t /= 0.5f*d) < 1)
|
if ((t /= 0.5f*d) < 1) return 0.5f*c*t*t*t + b;
|
||||||
return 0.5f*c*t*t*t + b;
|
|
||||||
t -= 2;
|
t -= 2;
|
||||||
|
|
||||||
return 0.5f*c*(t*t*t + 2.0f) + b;
|
return 0.5f*c*(t*t*t + 2.0f) + b;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue