Example #1
0
 public GridBoundingBox(GridInterval xInterval, GridInterval yInterval)
 {
     XInterval   = xInterval;
     YInterval   = yInterval;
     TopLeft     = new GridCoordinatePair(XInterval.Min, YInterval.Min);
     TopRight    = new GridCoordinatePair(XInterval.Max, YInterval.Min);
     BottomRight = new GridCoordinatePair(XInterval.Max, YInterval.Max);
     BottomLeft  = new GridCoordinatePair(XInterval.Min, YInterval.Max);
 }
Example #2
0
 public bool Contains(GridCoordinatePair coordinatePair)
 {
     return(Contains(coordinatePair.X, coordinatePair.Y));
 }
Example #3
0
 public static GridBoundingBox FromMinMax(GridCoordinatePair topLeft, GridCoordinatePair bottomRight)
 {
     return(FromMinMax(topLeft.X, topLeft.Y, bottomRight.X, bottomRight.Y));
 }
 public static GridPolarCoordinates FromGridCartesian(GridCoordinatePair coords)
 {
     return(FromGridCartesian(coords.X, coords.Y));
 }