예제 #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);
 }
예제 #2
0
 public bool Contains(GridCoordinatePair coordinatePair)
 {
     return(Contains(coordinatePair.X, coordinatePair.Y));
 }
예제 #3
0
 public static GridBoundingBox FromMinMax(GridCoordinatePair topLeft, GridCoordinatePair bottomRight)
 {
     return(FromMinMax(topLeft.X, topLeft.Y, bottomRight.X, bottomRight.Y));
 }
예제 #4
0
 public static GridPolarCoordinates FromGridCartesian(GridCoordinatePair coords)
 {
     return(FromGridCartesian(coords.X, coords.Y));
 }