Ejemplo n.º 1
0
 public int DistanceSquared(Vector2i v)
 {
     return(DistanceSquared(this, v));
 }
Ejemplo n.º 2
0
 public float Distance(Vector2i v)
 {
     return(Distance(this, v));
 }
Ejemplo n.º 3
0
 public static bool AreNeighbours(Vector2i a, Vector2i b)
 {
     return((a.x == b.x || a.x == b.x + 1 || a.x == b.x - 1) &&
            (a.y == b.y || a.y == b.y + 1 || a.y == b.y - 1));
 }