1609 {
1610
1611 if ( period == 0 )
1612 period = 1;
1613
1614 elapsedTime /= period;
1615
1616 float cycle;
1617 cycle += elapsedTime;
1619 cycle =
Math.
Sin(cycle) * amplitude;
1620
1621 return cycle;
1622 }
static float FModulus(float x, float y)
static proto float Sin(float angle)
Returns sinus of angle in radians.