MathNumberExtension extension
- on
Methods
-
acos(
) → double - Returns the arc-cos of this num.
-
asin(
) → double - Returns the arc-sin of this num.
-
atan(
) → double - Returns the arc-tan of this num.
-
atan2(
num other) → double -
Returns the arc-tag of this num and
other
. -
between(
num min, num max) → bool -
Returns true, if this num is between
min
andmax
(inclusive). -
clip(
num min, num max) → num -
Clips (limits) this num to the range from
min
tomax
(inclusive). -
cos(
) → double - Returns the cos of this num.
-
exp(
) → double - Returns the natural exponent of this num.
-
log(
) → double - Returns the natural logarithm of this num.
-
pow(
num exponent) → num -
Returns this num to the power of
exponent
. -
sin(
) → double - Returns the sin of this num.
-
sqrt(
) → double - Returns the square root of this num.
-
tan(
) → double - Returns the tan of this num.