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); }
public bool Contains(GridCoordinatePair coordinatePair) { return(Contains(coordinatePair.X, coordinatePair.Y)); }
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)); }