@Override public void getBounds(Bounds bounds) { super.getBounds(bounds); bounds.isWide() .addHorizontalPlane(planetModel, topLat, topPlane, bottomPlane, eitherBound) .addVerticalPlane(planetModel, rightLon, rightPlane, topPlane, bottomPlane) .addHorizontalPlane(planetModel, bottomLat, bottomPlane, topPlane, eitherBound) .addVerticalPlane(planetModel, leftLon, leftPlane, topPlane, bottomPlane) .addIntersection(planetModel, leftPlane, rightPlane, topPlane, bottomPlane) .addPoint(ULHC).addPoint(URHC).addPoint(LRHC).addPoint(LLHC); }
/** Get the bounds for a segment endpoint. *@param planetModel is the planet model. *@param bounds are the bounds to be modified. */ public void getBounds(final PlanetModel planetModel, Bounds bounds) { bounds.addPoint(point); if (circlePlane == null) return; bounds.addPlane(planetModel, circlePlane); }
@Override public void getBounds(Bounds bounds) { super.getBounds(bounds); bounds.isWide() .addVerticalPlane(planetModel, leftLon, leftPlane) .addVerticalPlane(planetModel, rightLon, rightPlane) .addIntersection(planetModel, leftPlane, rightPlane) .addPoint(planetModel.NORTH_POLE) .addPoint(planetModel.SOUTH_POLE); }
@Override public void getBounds(Bounds bounds) { super.getBounds(bounds); bounds.addHorizontalPlane(planetModel, topLat, topPlane, bottomPlane, leftPlane, rightPlane) .addVerticalPlane(planetModel, rightLon, rightPlane, topPlane, bottomPlane, leftPlane) .addHorizontalPlane(planetModel, bottomLat, bottomPlane, topPlane, leftPlane, rightPlane) .addVerticalPlane(planetModel, leftLon, leftPlane, topPlane, bottomPlane, rightPlane) //.addIntersection(planetModel, leftPlane, rightPlane, topPlane, bottomPlane) .addPoint(ULHC).addPoint(URHC).addPoint(LLHC).addPoint(LRHC); }
bounds.noTopLatitudeBound().noLongitudeBound() .addPoint(planetModel.NORTH_POLE); bounds.noBottomLatitudeBound().noLongitudeBound() .addPoint(planetModel.SOUTH_POLE); bounds.addPoint(planetModel.MIN_X_POLE); bounds.addPoint(planetModel.MAX_X_POLE); bounds.addPoint(planetModel.MIN_Y_POLE); bounds.addPoint(planetModel.MAX_Y_POLE); bounds.addPoint(point); bounds.addPlane(planetModel, edge, eitherBounds.get(edge)); final SidedPlane nextEdge = nextBrotherMap.get(edge); bounds.addIntersection(planetModel, edge, nextEdge, prevBrotherMap.get(edge), nextBrotherMap.get(nextEdge));
@Override public void getBounds(Bounds bounds) { if (isWithin(planetModel.NORTH_POLE)) { bounds.noTopLatitudeBound().noLongitudeBound() .addPoint(planetModel.NORTH_POLE); } if (isWithin(planetModel.SOUTH_POLE)) { bounds.noBottomLatitudeBound().noLongitudeBound() .addPoint(planetModel.SOUTH_POLE); } if (isWithin(planetModel.MIN_X_POLE)) { bounds.addPoint(planetModel.MIN_X_POLE); } if (isWithin(planetModel.MAX_X_POLE)) { bounds.addPoint(planetModel.MAX_X_POLE); } if (isWithin(planetModel.MIN_Y_POLE)) { bounds.addPoint(planetModel.MIN_Y_POLE); } if (isWithin(planetModel.MAX_Y_POLE)) { bounds.addPoint(planetModel.MAX_Y_POLE); } }
/** Get the bounds for a segment endpoint. *@param planetModel is the planet model. *@param bounds are the bounds to be modified. */ public void getBounds(final PlanetModel planetModel, Bounds bounds) { // We need to do all bounding planes as well as corner points bounds.addPoint(start).addPoint(end) .addPoint(ULHC).addPoint(URHC).addPoint(LRHC).addPoint(LLHC) .addPlane(planetModel, upperConnectingPlane, lowerConnectingPlane, startCutoffPlane, endCutoffPlane) .addPlane(planetModel, lowerConnectingPlane, upperConnectingPlane, startCutoffPlane, endCutoffPlane) .addPlane(planetModel, startCutoffPlane, endCutoffPlane, upperConnectingPlane, lowerConnectingPlane) .addPlane(planetModel, endCutoffPlane, startCutoffPlane, upperConnectingPlane, lowerConnectingPlane) .addIntersection(planetModel, upperConnectingPlane, startCutoffPlane, lowerConnectingPlane, endCutoffPlane) .addIntersection(planetModel, startCutoffPlane, lowerConnectingPlane, endCutoffPlane, upperConnectingPlane) .addIntersection(planetModel, lowerConnectingPlane, endCutoffPlane, upperConnectingPlane, startCutoffPlane) .addIntersection(planetModel, endCutoffPlane, upperConnectingPlane, startCutoffPlane, lowerConnectingPlane); }
@Override public void getBounds(Bounds bounds) { super.getBounds(bounds); bounds.isWide() .addHorizontalPlane(planetModel, latitude, plane, eitherBound) .addPoint(LHC) .addPoint(RHC); }
@Override public void getBounds(Bounds bounds) { super.getBounds(bounds); bounds .addVerticalPlane(planetModel, leftLon, leftPlane, rightPlane) .addVerticalPlane(planetModel, rightLon, rightPlane, leftPlane) //.addIntersection(planetModel, rightPlane, leftPlane) .addPoint(planetModel.NORTH_POLE) .addPoint(planetModel.SOUTH_POLE); }
@Override public void getBounds(Bounds bounds) { super.getBounds(bounds); bounds.noLongitudeBound() .addHorizontalPlane(planetModel, topLat, topPlane) .addHorizontalPlane(planetModel, bottomLat, bottomPlane); }
@Override public void getBounds(Bounds bounds) { super.getBounds(bounds); bounds.addHorizontalPlane(planetModel, latitude, plane, leftPlane, rightPlane) .addPoint(LHC).addPoint(RHC); }
@Override public Bounds noBound(final PlanetModel planetModel) { return noLongitudeBound().noTopLatitudeBound().noBottomLatitudeBound(); }
/** Get the bounds for a segment endpoint. *@param planetModel is the planet model. *@param bounds are the bounds to be modified. */ public void getBounds(final PlanetModel planetModel, Bounds bounds) { bounds.addPoint(point); }
@Override public void getBounds(Bounds bounds) { super.getBounds(bounds); bounds .addHorizontalPlane(planetModel, topLat, topPlane); }
bounds.noTopLatitudeBound().noLongitudeBound() .addPoint(planetModel.NORTH_POLE); bounds.noBottomLatitudeBound().noLongitudeBound() .addPoint(planetModel.SOUTH_POLE); bounds.addPoint(planetModel.MIN_X_POLE); bounds.addPoint(planetModel.MAX_X_POLE); bounds.addPoint(planetModel.MIN_Y_POLE); bounds.addPoint(planetModel.MAX_Y_POLE); bounds.isWide(); bounds.addPoint(point); bounds.addPlane(planetModel, edge, eitherBounds.get(edge)); bounds.addIntersection(planetModel, invertedEdge, nextEdge, prevBrotherMap.get(invertedEdge), nextBrotherMap.get(nextEdge));
@Override public void getBounds(Bounds bounds) { super.getBounds(bounds); bounds .addHorizontalPlane(planetModel, topLat, topPlane, leftPlane, rightPlane) .addVerticalPlane(planetModel, leftLon, leftPlane, topPlane, rightPlane) .addVerticalPlane(planetModel, rightLon, rightPlane, topPlane, leftPlane) //.addIntersection(planetModel, rightPlane, leftPlane, topPlane) .addPoint(URHC).addPoint(ULHC).addPoint(planetModel.SOUTH_POLE); }
@Override public void getBounds(Bounds bounds) { super.getBounds(bounds); bounds .addVerticalPlane(planetModel, longitude, plane, boundingPlane) .addPoint(planetModel.NORTH_POLE).addPoint(planetModel.SOUTH_POLE); }
@Override public void getBounds(Bounds bounds) { super.getBounds(bounds); bounds.noLongitudeBound() .addHorizontalPlane(planetModel, latitude, plane); }