Vec4:sub
Subtracts a vector or a number from the vector.
v = Vec4:sub(u)
Arguments
Name | Type | Description |
u | Vec2 | The other vector. |
Returns
Name | Type | Description |
v | Vec2 | The original vector. |
v = Vec4:sub(x)
Arguments
Name | Type | Description |
x | number | A number to subtract from each component. |
Returns
Name | Type | Description |
v | Vec2 | The original vector. |
See also
Vec2:add
Vec2:mul
Vec2:div
Vec4