UNPKG

@phaserjs/phaser

Version:
5 lines (4 loc) 139 B
import { Vec3 } from "./Vec3"; export function Vec3Subtract(a, b, out = new Vec3()) { return out.set(a.x - b.x, a.y - b.y, a.z - b.z); }