You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
788 B
788 B
Mod
Compute value of one parameter modulo another
Các phiên bản
float mod(float x, float y)
vec2 mod(vec2 x, vec2 y)
vec3 mod(vec3 x, vec3 y)
vec4 mod(vec4 x, vec4 y)
vec2 mod(vec2 x, float y)
vec3 mod(vec3 x, float y)
vec4 mod(vec4 x, float y)
Các tham số
x
specify the value to evaluate.
y
specify the value to obtain the modulo of.
Mô tả
mod()
returns the value of x
modulo y
. This is computed as x - y * floor(x/y)
.
Tham khảo thêm
floor, fract, ceil, Các hàm số cơ bản (Hàm hình dạng - Shape function)