Different from Num.clamp in that the value out-of-bound will be "looped back" to the other end.
value to bound
min value
max value
Clamp values between min and max
value to clamp
min value
max value
Given a value between 0 to 1, returns a value that cycles between 0 -> 1 -> 0 using sine method.
a value between 0 to 1
a value between 0 to 1
Check if two numbers are equal or almost equal within a threshold
number a
number b
a threshold within which the two numbers are considered equal
Linear interpolation
start value
end value
usually a value between 0 to 1
Map a value from one range to another
a value in the first range
a remapped value in the second range
Normalize a value within a range
the value to normalize
range value 1
range value 1
Get a random number within a range
range value 1
range value 2
Check if a value is within
Generated using TypeDoc
Num class provides various helper functions for basic numeric operations