Vec2:add
EditAdds a vector or a number to 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 add to x component. | |
y | number | x | A value to add to y component. |
Returns
Name | Type | Description |
self | Vec2 | The modified vector. |