UNPKG

@phaserjs/phaser

Version:
5 lines (4 loc) 145 B
import { Vec4 } from "./Vec4"; export function Vec4Add(a, b, out = new Vec4()) { return out.set(a.x + b.x, a.y + b.y, a.z + b.z, a.w + b.w); }