Static
DegConstant mapping degrees to radians. This equals pi/180.
Static
RadConstant mapping radians to degrees. This equals 180/pi.
Static
clampClamp floating-point value v
in the range [lo, hi]
(inclusive).
Static
lerpLinearly interpolate from floating-point a
to b
, based on fraction t
(where t=0.0 returns a, and t=1.0 returns b). This is equivalent to the vec2 and vec3 lerp() functions, but operates on scalar floating-point values.
Static
randomGenerate a random floating-point value in the range [lo, hi)
. Note, the range is inclusive at the lower end, and exclusive at the upper.
Static
remapMap floating-point v
from range [inMin, inMax] to [outMin, outMax].
Provides useful math utility functions.