Vec2:sub
EditSubtracts a vector or a number from the vector.
Arguments
| Name | Type | Description |
| u | Vec2 | The other vector. |
Returns
| Name | Type | Description |
| self | Vec2 | The modified vector. |
Arguments
| Name | Type | Default | Description |
| x | number | A value to subtract from x component. | |
| y | number | x | A value to subtract from y component. |
Returns
| Name | Type | Description |
| self | Vec2 | The modified vector. |