cf_cube_in_out¶
Category: math
GitHub: cute_math.h
Returns the cubic ease of a float from 0.0f to 1.0f.
float cf_cube_in_out(float x) { if (x < 0.5f) return 4.0f * x * x * x; else { return 4.0f * x * x * x - 3.0f * x * x + 1.0f; } }
Remarks¶
Here is a great link to visualize each easing function.