1748 {
1749
1750 if ( period == 0 )
1751 period = 1;
1752
1753 elapsedTime /= period;
1754
1755 float cycle;
1756 cycle += elapsedTime;
1758 cycle =
Math.
Sin(cycle) * amplitude;
1759
1760 return cycle;
1761 }
static float FModulus(float x, float y)
static proto float Sin(float angle)
Returns sinus of angle in radians.