-
Notifications
You must be signed in to change notification settings - Fork 1
Module monkey.math
The math module provides math related constants and functions.
HALFPI : Float
PI : Float
TWOPI : Float
ACos : Float ( x:Float )
ACosr : Float ( x:Float )
ASin : Float ( x:Float )
ASinr : Float ( x:Float )
ATan : Float ( x:Float )
ATan2 : Float ( x:Float, y:Float )
ATan2r : Float ( x:Float, y:Float )
ATanr : Float ( x:Float )
Abs : Int ( x:Int )
Abs : Float ( x:Float )
Ceil : Float ( x:Float )
Clamp : Int ( x:Int, min:Int, max:Int )
Clamp : Float ( x:Float, min:Float, max:Float )
Cos : Float ( x:Float )
Cosr : Float ( x:Float )
Exp : Float ( x:Float )
Floor : Float ( x:Float )
Log : Float ( x:Float )
Max : Int ( x:Int, y:Int )
Max : Float ( x:Float, y:Float )
Min : Int ( x:Int, y:Int )
Min : Float ( x:Float, y:Float )
Pow : Float ( x:Float, y:Float )
Sgn : Int ( x:Int )
Sgn : Float ( x:Float )
Sin : Float ( x:Float )
Sinr : Float ( x:Float )
Sqrt : Float ( x:Float )
Tan : Float ( x:Float )
Tanr : Float ( x:Float )
The math module provides math related constants and functions.
Returns the arc cosine of x, in degrees.
Returns the arc cosine of x, in radians.
Returns the arc sine of x, in degrees.
Returns the arc sine of x, in radians.
Returns the arc tangent of x, in degrees.
Returns the arc tangent of x / y, in degrees.
The function uses the signs of x and y to compute the correct quadrant for the result.
Returns the arc tangent of x / y, in radians.
The function uses the signs of x and y to compute the correct quadrant for the result.
Returns the arc tangent of x, in radians.
Returns the absolute value of x, that is, +@x if x>=0 and -@x if x<0.
Returns the absolute value of x, that is, +@x if x>=0 and -@x if x<0.
Returns the smallest integral value that is not less than x.
Clamps x to the range min through max inclusive.
Clamps x to the range min through max inclusive.
Returns the cosine of x degrees.
Returns the cosine of x radians.
Returns the base-e exponential function of x, which is the e number raised to the power x.
Returns the largest integral value that is not greater than x.
Returns the natural logarithm of x.
Returns the maximum of x and y.
Returns the maximum of x and y.
Returns the minimum of x and y.
Returns the minimum of x and y.
Returns x raised to the power y.
Returns -1 if x is less than zero, +1 if x is greater than zero or 0 if x is equal to zero.
Returns -1 if x is less than zero, +1 if x is greater than zero or 0 if x is equal to zero.
Returns the sine of x degrees.
Returns the sine of x radians.
Returns the square root of x.
Returns the tangent of x degrees.
Returns the tangent of x radians.
- Home
- Tutorials
- Samples
- API Reference
- Programming
- Target SDKs
- Tools
- Links
- Credits