UNPKG

@phaserjs/phaser

Version:
7 lines (6 loc) 229 B
import { Vec3 } from "./Vec3"; export function Vec3Min(a, b, out = new Vec3()) { const { x: ax, y: ay, z: az } = a; const { x: bx, y: by, z: bz } = b; return out.set(Math.min(ax, bx), Math.min(ay, by), Math.min(az, bz)); }