Vec3:div

Divides the vector by a vector or a number.


v = Vec3:div(u)

Arguments

NameTypeDescription
uVec3 The other vector to divide the components by.

Returns

NameTypeDescription
vVec3 The original vector.

v = Vec3:div(x, y, z)

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.

Returns

NameTypeDescription
vVec3 The original vector.

See also