Returns pi.
mod(int x, int y) int
Returns the remainder of x / y.
Returns sin(x).
Returns sin^-1(x).
Returns cos(x).
Returns cos^-1(x).
Returns tan(x).
Returns tan^-1(x).
Returns tan^-1(y/x), mapped into the range [-pi, pi]
Returns the absolute value of x.
Returns e^x.
Returns x^y.
Returns x^1/2.
Returns the natural logarithm of x, ln(x).
Returns the largest integer y, such that x >= y.
Returns the smallest integer y, such that x <= y.
Returns x – floor(x).
Returns floor(x) converted to an integer.
Returns ceil(x) converted to an integer.
Converts x to type real.
min(real x, real y) real
min(vec2 x, vec2 y) vec2
min(vec3 x, vec3 y) vec3
If x < y, returns x, otherwise returns y.
In the case of vec2 or vec3 arguments, the comparison is done component-wise.
max(real x, real y) real
max(vec2 x, vec2 y) vec2
max(vec3 x, vec3 y) vec3
If x > y, returns x, otherwise returns y.
In the case of vec2 or vec3 arguments, the comparision is done component-wise.
lerp(vec2 x, vec2 y, real t) vec2
lerp(vec3 x, vec3 y, real t) vec3
Returns x * (1 – t) + y * t
clamp(real x, real minval, real maxval) real
clamp(vec2 x, vec2 minval, vec2 maxval) vec2.
clamp(vec3 x, vec3 minval, vec3 maxval) vec3
Returns max(minval, min(maxval, x)).
In the case of vec2 or vec3 arguments, the clamping is done component-wise.
Undefined if minval > maxval.
Returns 1 if x >= step_x, 0 otherwise.
Returns 0 if x <= a, 1 if x >= b, and interpolates smoothly between 0 and 1 as x ranges from a to b.
Like smoothstep but smoother.
0 if x < a or x > b, 1 otherwise.
0 when x < a, smoothly interpolates up to 1 when x is between a and b, 1 between b and c, smoothly interpolates down to 0 when x is between c and d. 0 when x > d.