Vec2:mul

Multiplies the vector by a vector or a number.


v = Vec2:mul(u)

Arguments

NameTypeDescription
uVec2 The other vector to multiply the components by.

Returns

NameTypeDescription
vVec2 The original vector.

v = Vec2:mul(x, y)

Arguments

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

Returns

NameTypeDescription
vVec2 The original vector.

See also