Vec2:div

Divides the vector by a vector or a number.


v = Vec2:div(u)

Arguments

NameTypeDescription
uVec2 The other vector to divide the components by.

Returns

NameTypeDescription
vVec2 The original vector.

v = Vec2:div(x, y)

Arguments

NameTypeDefaultDescription
xnumber A value to divide x component by.
ynumberx A value to divide y component by.

Returns

NameTypeDescription
vVec2 The original vector.

See also