vec2()
function vec2(x: number, y: number): Vector2;
Defined in: src/lib/math.ts:724
Creates a 2D vector from coordinates.
Parameters
| Parameter | Type | Description |
|---|---|---|
x | number | The x coordinate. |
y | number | The y coordinate. |
Returns
A new Vector2 instance.
function vec2(x: number, y: number): Vector2;
Defined in: src/lib/math.ts:724
Creates a 2D vector from coordinates.
| Parameter | Type | Description |
|---|---|---|
x | number | The x coordinate. |
y | number | The y coordinate. |
A new Vector2 instance.