Game Development Reference
In-Depth Information
7.1.2.5Sine
double sine(double t)
{
return 1 - cos(t * math::HalfPi);
}
Curve
Example
animation(m_alpha, 0.f, 1.f,
curves::ease_in<curves::sine>);
Ease In
animation(m_alpha, 0.f, 1.f,
curves::ease_out<curves::sine>);
Ease Out
animation(m_alpha, 0.f, 1.f,
curves::ease_in_out<curves::sine>);
Ease In/Out
Search WWH ::




Custom Search