UNPKG

@phaserjs/phaser

Version:
7 lines (6 loc) 150 B
export function GetVec3DistanceSquared(a, b) { const x = a.x - b.x; const y = a.y - b.y; const z = a.z - b.z; return x * x + y * y + z * z; }