Returns the Manhattan distance to another point.
double manhattanDistanceTo(Point other) { return (x - other.x).abs() + (y - other.y).abs(); }