Vec4:add
EditAdds a vector or a number to the vector.
Arguments
| Name | Type | Description |
| u | Vec4 | The other vector. |
Returns
| Name | Type | Description |
| self | Vec4 | 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. |
| z | number | x | A value to add to z component. |
| w | number | x | A value to add to w component. |
Returns
| Name | Type | Description |
| self | Vec4 | The modified vector. |