Vec2:div
Divides the vector by a vector or a number.
v = Vec2:div(u)
Arguments
Name | Type | Description |
u | Vec2 | The other vector to divide the components by. |
Returns
Name | Type | Description |
v | Vec2 | The original vector. |
v = Vec2:div(x)
Arguments
Name | Type | Description |
x | number | The number to divide each component by. |
Returns
Name | Type | Description |
v | Vec2 | The original vector. |
See also
Vec2:add
Vec2:sub
Vec2:mul
Vec2