Returns a value clamped between a maximum and a minimum number.
The value to clamp.
The minimum boundary.
The maximum boundary.
Computes the amount of decimals of a number. Note: Will drop trailing zeroes off a numeric value. 1.00 => 0 decimals '1.00' => 2 decimals.
A value as a number or a string.
Converts degrees to radians.
A number representing the degrees to convert.
Checks if value is inside a range.
Value to check.
Range minimum boundary.
Range maximum boundary.
Optional threshold value.
Linear interpolation.
Start value;
End value.
A value in the set [0, 1].
Maps a value from an input range to an output range.
The value to map.
In start value.
In end value.
Out start value.
Out end value.
Converts radians to degrees.
A number representing the radians to
Returns a random integer inside range or snap to min/max values.
Minimum value.
Maximum value.
Returns a pseudo-random number between a min (inclusive) and a max (exclusive) value.
If min is greater than max the parameters are swapped to support inverted ranges.
The minimum value of the range.
The maximum value of the range.
Returns a random string of the specified length.
Length.
A string containing all the symbols to choose from.
Rounds number to a specific radix.
Value to round.
Radix.
Wraps a value within a range.
The value to wrap.
The minimum boundary.
The maximum boundary.
Generated using TypeDoc