manhattanDistanceTo method

num manhattanDistanceTo(
  1. Vector2 v
)

Implementation

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