/** * Create a ProjectionRect from the given LatLonRect. * Handles lat/lon points that do not intersect the projection panel. * * @param rect the LatLonRect * @return ProjectionRect, or null if no part of the LatLonRect intersects the projection plane */ @Override public ProjectionRect latLonToProjBB(LatLonRect rect) { BoundingBoxHelper bbhelper = new BoundingBoxHelper(this, maxR); return bbhelper.latLonToProjBB(rect); }
if (!addGoodPts(goodPts, llpt)) countBad++; if (!addGoodPts(goodPts, urpt)) countBad++; if (!addGoodPts(goodPts, lrpt)) countBad++; if (!addGoodPts(goodPts, ulpt)) countBad++; addGoodPts(goodPts, new ProjectionPointImpl(0, maxR)); addGoodPts(goodPts, new ProjectionPointImpl(maxR, 0)); addGoodPts(goodPts, new ProjectionPointImpl(0, -maxR)); addGoodPts(goodPts, new ProjectionPointImpl(-maxR, 0)); addGoodPts(goodPts, new ProjectionPointImpl(xcoord, getLimitCoord(xcoord))); addGoodPts(goodPts, new ProjectionPointImpl(getLimitCoord(ycoord), ycoord)); } else if (!ProjectionPointImpl.isInfinite(urpt)) { double xcoord = urpt.getX(); addGoodPts(goodPts, new ProjectionPointImpl(xcoord, -getLimitCoord(xcoord))); addGoodPts(goodPts, new ProjectionPointImpl(-getLimitCoord(ycoord), ycoord)); } else if (!ProjectionPointImpl.isInfinite(ulpt)) { double xcoord = ulpt.getX(); addGoodPts(goodPts, new ProjectionPointImpl(xcoord, -getLimitCoord(xcoord)));
if (!addGoodPts(goodPts, llpt)) countBad++; if (!addGoodPts(goodPts, urpt)) countBad++; if (!addGoodPts(goodPts, lrpt)) countBad++; if (!addGoodPts(goodPts, ulpt)) countBad++; addGoodPts(goodPts, new ProjectionPointImpl(0, maxR)); addGoodPts(goodPts, new ProjectionPointImpl(maxR, 0)); addGoodPts(goodPts, new ProjectionPointImpl(0, -maxR)); addGoodPts(goodPts, new ProjectionPointImpl(-maxR, 0)); addGoodPts(goodPts, new ProjectionPointImpl(xcoord, getLimitCoord(xcoord))); addGoodPts(goodPts, new ProjectionPointImpl(getLimitCoord(ycoord), ycoord)); } else if (!ProjectionPointImpl.isInfinite(urpt)) { double xcoord = urpt.getX(); addGoodPts(goodPts, new ProjectionPointImpl(xcoord, -getLimitCoord(xcoord))); addGoodPts(goodPts, new ProjectionPointImpl(-getLimitCoord(ycoord), ycoord)); } else if (!ProjectionPointImpl.isInfinite(ulpt)) { double xcoord = ulpt.getX(); addGoodPts(goodPts, new ProjectionPointImpl(xcoord, -getLimitCoord(xcoord)));
/** * Create a ProjectionRect from the given LatLonRect. * Handles lat/lon points that do not intersect the projection panel. * * @param rect the LatLonRect * @return ProjectionRect, or null if no part of the LatLonRect intersects the projection plane */ @Override public ProjectionRect latLonToProjBB(LatLonRect rect) { BoundingBoxHelper bbhelper = new BoundingBoxHelper(this, maxR); return bbhelper.latLonToProjBB(rect); }
/** * Create a ProjectionRect from the given LatLonRect. * Handles lat/lon points that do not intersect the projection panel. * * @param rect the LatLonRect * @return ProjectionRect, or null if no part of the LatLonRect intersects the projection plane */ @Override public ProjectionRect latLonToProjBB(LatLonRect rect) { BoundingBoxHelper bbhelper = new BoundingBoxHelper(this, maxR); return bbhelper.latLonToProjBB(rect); }
/** * Create a ProjectionRect from the given LatLonRect. * Handles lat/lon points that do not intersect the projection panel. * * @param rect the LatLonRect * @return ProjectionRect, or null if no part of the LatLonRect intersects the projection plane */ @Override public ProjectionRect latLonToProjBB(LatLonRect rect) { BoundingBoxHelper bbhelper = new BoundingBoxHelper(this, maxR); return bbhelper.latLonToProjBB(rect); }