UNPKG

@phaserjs/phaser

Version:
6 lines (5 loc) 114 B
export function Vec2ToArray(v, dst = [], index = 0) { dst[index] = v.x; dst[index + 1] = v.y; return dst; }