public static int ManhattanDistance(Vector2i a, Vector2i b) { Vector2i d = a - b; return(Mathf.Abs(d.x) + Mathf.Abs(d.x)); }
public bool Equals(Vector2i other) { return(x == other.x && y == other.y); }
public static int ManhattanDistance(Vector2i a, Vector2i b) { Vector2i d = a - b; return(Mathf.Abs(d.x) + Mathf.Abs(d.x)); }
public bool Equals(Vector2i other) { return(x == other.x && y == other.y); }