Vec2:div

Divides the vector by a vector or a number.

v = Vec2:div(u)

Arguments

NameTypeDescription
uVec2The other vector to divide the components by.

Returns

NameTypeDescription
vVec2The original vector.

v = Vec2:div(x)

Arguments

NameTypeDescription
xnumberThe number to divide each component by.

Returns

NameTypeDescription
vVec2The original vector.

See also