UNPKG

@phaserjs/phaser

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