aninest-root / Vec2 / vecToIter
vecToIter()
ts
function vecToIter(v): readonly [number, number];
Defined in: Utils/vec2.ts:119
Converts a vector to an array. Useful for spreading into function arguments.
Parameters
v
Returns
readonly [number
, number
]
An array with the x and y components of the vector in the format [x, y].