Game Development Reference
In-Depth Information
7.1.2.2Cubic
double cubic(double t)
{
return t * t * t;
}
Curve
Example
animation anim(m_alpha, 0.f, 1.f,
curves::ease_in<curves::cubic>);
Ease In
animation anim(m_alpha, 0.f, 1.f,
curves::ease_out<curves::cubic>);
Ease Out
animation(m_alpha, 0.f, 1.f,
curves::ease_in_out<curves::cubic>);
Ease In/Out
Search WWH ::




Custom Search