Monkey

void print( string text )

text string A string containing contents to be output into the console.
Outputs text into the console.

float sin( float angle )

angle float An angle represented in degrees.
Returns the sine of angle in degrees.

float cos( float angle )

angle float An angle represented in degrees.
Returns the cosine of angle in degrees.

float tan( float angle )

angle float An angle represented in degrees.
Returns the tangent of angle in degrees.

float asin( float angle )

angle float An angle represented in degrees.
Returns the arc-sine of angle in degrees.

float acos( float angle )

angle float An angle represented in degrees.
Returns the arc-cosine of angle in degrees.

float atan( float angle )

angle float An angle represented in degrees.
Returns the arc-tangent of angle in degrees.

float atan2( float y , float x )

y float An angle represented in degrees.
x float An angle represented in degrees.
Returns the arc-tangent of y / x in degrees.

float sinr( float angle )

angle float An angle represented in radians.
Returns the sine of angle in radians.

float cosr( float angle )

angle float An angle represented in radians.
Returns the cosine of angle in radians.

float tanr( float angle )

angle float An angle represented in radians.
Returns the tangent of angle in radians.

float asinr( float angle )

angle float An angle represented in radians.
Returns the arc-sine of angle in radians.

float acosr( float angle )

angle float An angle represented in radians.
Returns the arc-cosine of angle in radians.

float atanr( float angle )

angle float An angle represented in radians.
Returns the arc-tangent of angle in radians.

float atan2r( float y , float x )

y float An angle represented in radians.
x float An angle represented in radians.
Returns the arc-tangent of y / x in radians.

float sqrt( float x )

x float The value to be used in calculation.
Returns the square root of x.

float floor( float x )

x float The value to be used in calculation.
Returns the largest integral value that is not greater than x.

float ceil( float x )

x float The value to be used in calculation.
Returns the smallest integral value that is not less than x.

float log( float x )

x float The value to be used in calculation.
Returns the natural logarithm of x.

float pow( float value , float pow )

value float The value to be raised to a numeric power.
pow float The numeric power to raise value by.
Returns value to the power of pow.

float exp( float x )

x float The value to be used in calculation.
Returns the base-e exponential function of x, which is the e number raised to the power x.

float sgn( float x )

x float The value to be used in calculation.
Returns -1 if x is less than zero, +1 if x is greater than zero or 0 if x is equal to zero.

float abs( float x )

x float The value to be used in calculation.
Returns the absolute value of x.

float min( float x , float y )

x float The value to be used in calculation.
y float The value to be used in calculation.
Returns the lowest of the two values, x or y.

float max( float x , float y )

x float The value to be used in calculation.
y float The value to be used in calculation.
Returns the highest of the two values, x or y.

float clamp( float x , float min , float max )

x float The value to be clamped.
min float The minimum value that x can be.
max float The maximum value that x can be.
Clamps x to the range min through max inclusive.

float seed( )

void seed( float x )

x float Sets the seed for the random number generator.
The current random number generator seed used by rnd.

float rnd( )

float rnd( float range )

range float The maximum range random can be.

float rnd( float low , float high )

low float The lowest value that random can use.
high float The highest value that random can use.
Returns a random float in the range 0, 0, or low (inclusive) to 1, high, or range (exclusive).