UNPKG

@phaserjs/phaser

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