Ejemplo n.º 1
0
 public int Distance(Pos other)
 {
     return(Math.Abs(x - other.x) + Math.Abs(y - other.y));
 }
Ejemplo n.º 2
0
 public bool Equals(Pos other)
 {
     return(x == other.x && y == other.y);
 }