Beispiel #1
0
 public bool equals(MZPosition otherPosition)
 {
     if ((_x == otherPosition._x) && (_y == otherPosition._y))
     {
         return(true);
     }
     return(false);
 }
Beispiel #2
0
 public MZPosition add(MZPosition pos2)
 {
     return(new MZPosition(_x + pos2.x(), _y + pos2.y()));
 }