Exemple #1
0
        public static int ManhattanDistance(Vector2i a, Vector2i b)
        {
            Vector2i d = a - b;

            return(Mathf.Abs(d.x) + Mathf.Abs(d.x));
        }
Exemple #2
0
 public bool Equals(Vector2i other)
 {
     return(x == other.x && y == other.y);
 }