Vec2:mul
EditMultiplies the vector by a vector or a number.
Arguments
Name | Type | Description |
u | Vec2 | The other vector to multiply the components by. |
Returns
Name | Type | Description |
self | Vec2 | The modified vector. |
Arguments
Name | Type | Default | Description |
x | number | A value to multiply x component by. | |
y | number | x | A value to multiply y component by. |
Returns
Name | Type | Description |
self | Vec2 | The modified vector. |
See also
Vec2:add
Vec2:sub
Vec2:div
Vec2