Vec4:div

Divides the vector by a vector or a number.


v = Vec4:div(u)

Arguments

NameTypeDescription
uVec4 The other vector to divide the components by.

Returns

NameTypeDescription
vVec4 The original vector.

v = Vec4:div(x, y, z, w)

Arguments

NameTypeDefaultDescription
xnumber A value to divide x component by.
ynumberx A value to divide y component by.
znumberx A value to divide z component by.
wnumberx A value to divide w component by.

Returns

NameTypeDescription
vVec4 The original vector.

See also