Value to be clamped.
The minimum value.
The maximum value.
Converts an angle expressed in degrees into radians.
The angle in degrees to convert to radians.
Computes the Euclidean modulo of m % n, that is: ( ( n % m ) + m ) % m
The dividend of the modulo operation.
The divisor of the modulo operation.
Return true if value is a power of 2.
The number to test.
Linearly interpolates ("lerp" for short) between v1 and v2 by alpha amount (alpha=0 returns v1, while alpha=1 returns v2). For eg: lerp(100, 200, 0.3) returns 130.
The starting number (returned when alpha equals 0).
The number to interpolate towards (returned when alpha equals 1).
The interpolation factor, typically in the closed interval [0, 1].
Linearily maps x from range [a1, a2] to range [b1, b2].
The value to be mapped.
The minimum value for range A.
The maximum value for range A.
The minimum value for range B.
The maximum value for range B.
Converts an angle expressed in radians into degrees.
The angle in radians to convert to degrees.
Returns a random float in the interval [low, high].
The lower bound of the interval where to draw the random float.
The higher bound of the interval where to draw the random float.
Returns a random float in the interval [-range/2, range/2].
The width of the zero-centered range where to draw the random float.
Returns a random integer in the interval [low, high].
The lower bound of the interval where to draw the random integer.
The higher bound of the interval where to draw the random integer.
Returns a value between 0-1. A variation on smoothstep that has zero 1st and 2nd order derivatives at x=0 and x=1.
The value to evaluate based on its position between min and max.
The "left-edge" of the smoothstep function. Any x value below min will be 0.
The "right-edge" of the smoothstep function. Any x value above max will be 1.
Returns a value between 0-1 that represents the percentage that x has moved between min and max, but smoothed or slowed down the closer x is to the min and max. See Smoothstep for details.
The value to evaluate based on its position between min and max.
The "left-edge" of the smoothstep function. Any x value below min will be 0.
The "right-edge" of the smoothstep function. Any x value above max will be 1.
Clamps the value to be between min and max.