Exemplo n.º 1
0
 public bool ValidCoordinate(Coordinate plateauCoordinate)
 {
     if (_lowerLeft.Xaxis <= plateauCoordinate.Xaxis && plateauCoordinate.Xaxis <= _upperRight.Xaxis && _lowerLeft.Yaxis <= plateauCoordinate.Yaxis && plateauCoordinate.Yaxis <= _upperRight.Yaxis)
     {
         return true;
     }
     return false;
 }
Exemplo n.º 2
0
 public static Plateau CreateNew(Coordinate upperRight,Coordinate lowerLeft)
 {
     return new Plateau(upperRight, lowerLeft);
 }
Exemplo n.º 3
0
 private Plateau(Coordinate upperRight, Coordinate lowerLeft)
 {
     _upperRight = upperRight;
     _lowerLeft = lowerLeft;
 }