UNPKG

@phaserjs/phaser

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