UNPKG

@phaserjs/phaser

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