Skip to main content

Interface: Vector2

Defined in: math/vector2.ts:9

A plain two-dimensional vector with x and y components.

All mutating operations on Vec2 mutate their target argument in place and return it (for chaining) rather than allocating a new Vector2. Callers that need to preserve the original value must clone it first with Vec2.clone.

Properties​

x​

x: number

Defined in: math/vector2.ts:10


y​

y: number

Defined in: math/vector2.ts:11