chebyshev function

int chebyshev(
  1. GridPoint lhs,
  2. GridPoint rhs
)

Implementation

int chebyshev(GridPoint lhs, GridPoint rhs) {
  return max((lhs.x - rhs.x).abs(), (lhs.y - rhs.y).abs());
}