Creates a Vector2 with components (x, y) (both default to 0).
Parameters
| x | number? | X component. |
| y | number? | Y component. |
Constructor and helpers for the Vector2 datatype.
| Name | Type | Access | Description |
|---|---|---|---|
| zero | Vector2 | read | The Vector2 since 1.2.0-alpha |
| one | Vector2 | read | The Vector2 since 1.2.0-alpha |
| xAxis | Vector2 | read | The Vector2 since 1.2.0-alpha |
| yAxis | Vector2 | read | The Vector2 since 1.2.0-alpha |