MathNumberExtension extension

Common mathematical functions on num.

on

Methods

acos() → double

Available on num, provided by the MathNumberExtension extension

Returns the arc-cos of this num.
asin() → double

Available on num, provided by the MathNumberExtension extension

Returns the arc-sin of this num.
atan() → double

Available on num, provided by the MathNumberExtension extension

Returns the arc-tan of this num.
atan2(num other) → double

Available on num, provided by the MathNumberExtension extension

Returns the arc-tan of this num and other.
between(num min, num max) → bool

Available on num, provided by the MathNumberExtension extension

Returns true, if this num is between min and max (inclusive).
clip(num min, num max) → num

Available on num, provided by the MathNumberExtension extension

Clips (limits) this num to the range from min to max (inclusive).
cos() → double

Available on num, provided by the MathNumberExtension extension

Returns the cos of this num.
exp() → double

Available on num, provided by the MathNumberExtension extension

Returns the natural exponent of this num.
log() → double

Available on num, provided by the MathNumberExtension extension

Returns the natural logarithm of this num.
pow(num exponent) → num

Available on num, provided by the MathNumberExtension extension

Returns this num to the power of exponent.
sin() → double

Available on num, provided by the MathNumberExtension extension

Returns the sin of this num.
sqrt() → double

Available on num, provided by the MathNumberExtension extension

Returns the square root of this num.
tan() → double

Available on num, provided by the MathNumberExtension extension

Returns the tan of this num.
toDegrees() → double

Available on num, provided by the MathNumberExtension extension

Returns the degree of this num in degrees.
toRadians() → double

Available on num, provided by the MathNumberExtension extension

Returns the radian of this num in radians.