UNPKG

@phaserjs/phaser

Version:
5 lines (4 loc) 123 B
import { Vec2 } from "./Vec2"; export function Vec2Add(a, b, out = new Vec2()) { return out.set(a.x + b.x, a.y + b.y); }