Skip to content

aninest root / Vec2 / vecToIter

vecToIter()

ts
function vecToIter(v): readonly [number, number]

Converts a vector to an array. Useful for spreading into function arguments.

Parameters

v: Vec2

Returns

readonly [number, number]

An array with the x and y components of the vector in the format [x, y].

Defined in

Utils/vec2.ts:118