@Override public void getBounds(Bounds bounds) { super.getBounds(bounds); bounds.noLongitudeBound() .addHorizontalPlane(planetModel, latitude, plane); }
@Override public void getBounds(Bounds bounds) { super.getBounds(bounds); bounds.noLongitudeBound() .addHorizontalPlane(planetModel, topLat, topPlane) .addHorizontalPlane(planetModel, bottomLat, bottomPlane); }
bounds.noTopLatitudeBound().noLongitudeBound() .addPoint(planetModel.NORTH_POLE); bounds.noBottomLatitudeBound().noLongitudeBound() .addPoint(planetModel.SOUTH_POLE);
bounds.noTopLatitudeBound().noLongitudeBound() .addPoint(planetModel.NORTH_POLE); bounds.noBottomLatitudeBound().noLongitudeBound() .addPoint(planetModel.SOUTH_POLE);
@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); } }