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




Custom Search