Vec2:mul

Multiplies the vector by a vector or a number.

v = Vec2:mul(u)

Arguments

NameTypeDescription
uVec2The other vector to multiply the components by.

Returns

NameTypeDescription
vVec2The original vector.

v = Vec2:mul(x)

Arguments

NameTypeDescription
xnumberThe number to multiply each component by.

Returns

NameTypeDescription
vVec2The original vector.

See also