![]() |
rag
graphic 2d engine
|
Collection of code-generated curves useful to create procedural tween animations. More...
#include <Ease.h>
Public Types | |
enum | EaseType { linear_01, quadIn_01, quadOut_01, quadInOut_01, cubicIn_01, cubicOut_01, cubicInOut_01, quartIn_01, quartOut_01, quartInOut_01, quintIn_01, quintOut_01, quintInOut_01, expoIn_01, expoOut_01, expoInOut_01, sineIn_01, sineOut_01, sineInOut_01, circIn_01, circOut_01, circInOut_01, backIn_01, backOut_01, backInOut_01, bounceIn_01, bounceOut_01, bounceInOut_01, elasticIn_01, elasticOut_01, elasticInOut_01, sinPi2_01, acelBreak_01, cos2Pi_11, sin2Pi_00, sinPi_00, sinPi2Pi_10, sin4Pi_00, sin3Pi4_00 } |
The types of curve supported. | |
Public Member Functions | |
Ease (EaseType myType=linear_01) | |
Constructs an Ease curve. | |
EaseType | getType () |
Returns the current type. | |
void | setType (EaseType myType) |
Sets the current EaseType. | |
float | get (float t, float d) |
Returns the y coordinate of the curve for a given point t in a curve of length d. | |
Public Attributes | |
EaseType | type |
float | PIf |
Collection of code-generated curves useful to create procedural tween animations.