UNPKG

@phaserjs/phaser

Version:
6 lines (5 loc) 193 B
import { Vec4 } from "./Vec4"; export function Vec4SubtractScalar(a, scalar, out = new Vec4()) { const { x, y, z, w } = a; return out.set(x - scalar, y - scalar, z - scalar, w - scalar); }