Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
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

◆ CubicIn()

static float Ease::CubicIn ( float  t,
const float  b,
const float  c,
const float  d 
)
inlinestatic

◆ CubicInOut()

static float Ease::CubicInOut ( float  t,
const float  b,
const float  c,
const float  d 
)
inlinestatic

◆ CubicOut()

static float Ease::CubicOut ( float  t,
const float  b,
const float  c,
const float  d 
)
inlinestatic

◆ QuadIn()

static float Ease::QuadIn ( float  t,
const float  b,
const float  c,
const float  d 
)
inlinestatic

◆ QuadInOut()

static float Ease::QuadInOut ( float  t,
const float  b,
const float  c,
const float  d 
)
inlinestatic

◆ QuadOut()

static float Ease::QuadOut ( float  t,
const float  b,
const float  c,
const float  d 
)
inlinestatic

◆ QuartIn()

static float Ease::QuartIn ( float  t,
const float  b,
const float  c,
const float  d 
)
inlinestatic

◆ QuartInOut()

static float Ease::QuartInOut ( float  t,
const float  b,
const float  c,
const float  d 
)
inlinestatic

◆ QuartOut()

static float Ease::QuartOut ( float  t,
const float  b,
const float  c,
const float  d 
)
inlinestatic

◆ QuintIn()

static float Ease::QuintIn ( float  t,
const float  b,
const float  c,
const float  d 
)
inlinestatic

◆ QuintInOut()

static float Ease::QuintInOut ( float  t,
const float  b,
const float  c,
const float  d 
)
inlinestatic

◆ QuintOut()

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: