chebyshev static method

dynamic chebyshev(
  1. dynamic dx,
  2. dynamic dy
)

Chebyshev distance. @param {number} dx - Difference in x. @param {number} dy - Difference in y. @return {number} max(dx, dy)

Implementation

static chebyshev(dx, dy) {
    return max<num>(dx, dy);
}