Example #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;
 }
Example #2
0
 public static Plateau CreateNew(Coordinate upperRight,Coordinate lowerLeft)
 {
     return new Plateau(upperRight, lowerLeft);
 }
Example #3
0
 private Plateau(Coordinate upperRight, Coordinate lowerLeft)
 {
     _upperRight = upperRight;
     _lowerLeft = lowerLeft;
 }