1602 {
1603
1604 if ( period == 0 )
1605 period = 1;
1606
1607 elapsedTime /= period;
1608
1609 float cycle;
1610 cycle += elapsedTime;
1612 cycle =
Math.
Sin(cycle) * amplitude;
1613
1614 return cycle;
1615 }
static float FModulus(float x, float y)
static proto float Sin(float angle)
Returns sinus of angle in radians.