Vec2:set
EditSets the components of the vector, either from numbers or an existing vector.
Arguments
Name | Type | Default | Description |
x | number | 0 | The new x value of the vector. |
y | number | x | The new y value of the vector. |
Returns
Name | Type | Description |
v | Vec2 | The input vector. |
Arguments
Name | Type | Description |
u | Vec2 | The vector to copy the values from. |
Returns
Name | Type | Description |
v | Vec2 | The input vector. |