Pyrogenesis  trunk
Static Public Member Functions | List of all members
Ease Class Reference

Generic easing functions. More...

#include <Ease.h>

Static Public Member Functions

static float QuadIn (float t, const float b, const float c, const float d)
 
static float QuadOut (float t, const float b, const float c, const float d)
 
static float QuadInOut (float t, const float b, const float c, const float d)
 
static float CubicIn (float t, const float b, const float c, const float d)
 
static float CubicOut (float t, const float b, const float c, const float d)
 
static float CubicInOut (float t, const float b, const float c, const float d)
 
static float QuartIn (float t, const float b, const float c, const float d)
 
static float QuartOut (float t, const float b, const float c, const float d)
 
static float QuartInOut (float t, const float b, const float c, const float d)
 
static float QuintIn (float t, const float b, const float c, const float d)
 
static float QuintOut (float t, const float b, const float c, const float d)
 
static float QuintInOut (float t, const float b, const float c, const float d)
 

Detailed Description

Generic easing functions.

In each function, the parameters are:

Parameters
tCurrent time in seconds, as a float between 0 and d (inclusive).
dTotal duration of the ease, in seconds. Must be strictly positive.
bBaseline value (at t = 0).
cDelta from baseline value to reach the target value (at t = d). I.e., target = b + c.

Each function outputs the eased value between 'b' and 'b+c' at time 't'.

Member Function Documentation

static float Ease::CubicIn ( float  t,
const float  b,
const float  c,
const float  d 
)
inlinestatic
static float Ease::CubicInOut ( float  t,
const float  b,
const float  c,
const float  d 
)
inlinestatic
static float Ease::CubicOut ( float  t,
const float  b,
const float  c,
const float  d 
)
inlinestatic
static float Ease::QuadIn ( float  t,
const float  b,
const float  c,
const float  d 
)
inlinestatic
static float Ease::QuadInOut ( float  t,
const float  b,
const float  c,
const float  d 
)
inlinestatic
static float Ease::QuadOut ( float  t,
const float  b,
const float  c,
const float  d 
)
inlinestatic
static float Ease::QuartIn ( float  t,
const float  b,
const float  c,
const float  d 
)
inlinestatic
static float Ease::QuartInOut ( float  t,
const float  b,
const float  c,
const float  d 
)
inlinestatic
static float Ease::QuartOut ( float  t,
const float  b,
const float  c,
const float  d 
)
inlinestatic
static float Ease::QuintIn ( float  t,
const float  b,
const float  c,
const float  d 
)
inlinestatic
static float Ease::QuintInOut ( float  t,
const float  b,
const float  c,
const float  d 
)
inlinestatic
static float Ease::QuintOut ( float  t,
const float  b,
const float  c,
const float  d 
)
inlinestatic

The documentation for this class was generated from the following file: