Skip to content

API Type Vec2Input

github-actions[bot] edited this page Nov 30, 2026 · 3 revisions

Type Alias: Vec2Input

type Vec2Input = 
  | Vec2Like
  | readonly [number, number]
  | readonly number[];

Defined in: src/engine/core/vector.ts:23

Accepts [x, y], {x, y} or a Vector2.

Clone this wiki locally