Skip to content

math

wonkey:wonkey.math

Namespace wonkey.math#
Functions
ACos Computes the inverse cosine of a number.
ASin Computes the inverse sine of a number.
ATan Computes the inverse tagent of a number.
ATan2 Computes the inverse tangent of a ratio.
Abs Gets the absolute value of a number.
Ceil Computes the ceiling of a number.
Clamp Clamps a value to a range.
Cos Computes the cosine of an angle.
Deg2Rad Converts degrees in angles. E.G. 90 degrees to radians
Exp Raise e to a power.
Floor Computes the floor of a number.
Length
Lerp Liniear Interp
Log Computes the natural logarithm of a number.
Log10 Computes the base 10 logarithm of a number.
Log2 Computes the base 2 logarithm of a number.
Max Gets the larger of two number.
Min Gets the smaller of two numbers.
PointInQuad
PointInTriangle
Pow Raises a number to a power.
Rad2Deg Converts radians to degrees in angles.
Round Rounds a number to the nearest integral value.
Sgn Gets the sign of a number.
Sin Computes the sine of an angle.
Slerp Linear Interp
Sqrt Computes the square root of a number.
Tan Computes the tangent of an angle.
Consts
Pi The value Pi.
Pi180 The value Pi / 180.
Pi2 The value Pi times 2.
Pi4 The value Pi times 4.
PiHalf The value Pi halved.
TwoPi The value Pi times 2.