manhattanDistanceTo method

num manhattanDistanceTo(
  1. Vector2 v
)

Implementation

num manhattanDistanceTo(Vector2 v) {
  return (Math.abs(x - v.x) + Math.abs(y - v.y)).toDouble();
}