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].