Example #1
0
 public bool Equals(Vector2i other)
 {
     return(X == other.X && Y == other.Y);
 }
Example #2
0
 public static float Distance(Vector2i a, Vector2i b)
 {
     return(Mathf.Sqrt(Mathf.Pow(a.X - b.X, 2) + Mathf.Pow(a.Y - b.Y, 2)));
 }