Vec2:mul

Edit

Multiplies the vector by a vector or a number.



Arguments

NameTypeDescription
uVec2 The other vector to multiply the components by.

Returns

NameTypeDescription
selfVec2 The modified vector.

Arguments

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

Returns

NameTypeDescription
selfVec2 The modified vector.

See also