1615 {
1616
1617 if ( period == 0 )
1618 period = 1;
1619
1620 elapsedTime /= period;
1621
1622 float cycle;
1623 cycle += elapsedTime;
1625 cycle =
Math.
Sin(cycle) * amplitude;
1626
1627 return cycle;
1628 }
static float FModulus(float x, float y)
static proto float Sin(float angle)
Returns sinus of angle in radians.