コード例 #1
0
 public int Distance(Pos other)
 {
     return(Math.Abs(x - other.x) + Math.Abs(y - other.y));
 }
コード例 #2
0
 public bool Equals(Pos other)
 {
     return(x == other.x && y == other.y);
 }