UNPKG

@phaserjs/phaser

Version:
4 lines (3 loc) 108 B
export function GetChebyshevDistance(a, b) { return Math.max(Math.abs(a.x - b.x), Math.abs(a.y - b.y)); }