| Modifier and Type | Field and Description |
|---|---|
protected Double |
leftLongitude
If non-null, the left longitude bound
|
protected Double |
maxLatitude
If non-null, the maximum latitude bound
|
protected Double |
minLatitude
If non-null, the minimum latitude bound
|
protected boolean |
noBottomLatitudeBound
Set to true if no bottom latitude bound can be stated
|
protected boolean |
noLongitudeBound
Set to true if no longitude bounds can be stated
|
protected boolean |
noTopLatitudeBound
Set to true if no top latitude bound can be stated
|
protected Double |
rightLongitude
If non-null, the right longitude bound
|
| Constructor and Description |
|---|
LatLonBounds()
Construct an empty bounds object
|
| Modifier and Type | Method and Description |
|---|---|
Bounds |
addHorizontalPlane(PlanetModel planetModel,
double latitude,
Plane horizontalPlane,
Membership... bounds)
Add a horizontal plane to the bounds description.
|
protected void |
addLatitudeBound(double latitude)
Update latitude bound.
|
protected void |
addLongitudeBound(double longitude)
Update longitude bound.
|
Bounds |
addPlane(PlanetModel planetModel,
Plane plane,
Membership... bounds)
Add a general plane to the bounds description.
|
Bounds |
addPoint(GeoPoint point)
Add a single point.
|
Bounds |
addVerticalPlane(PlanetModel planetModel,
double longitude,
Plane verticalPlane,
Membership... bounds)
Add a vertical plane to the bounds description.
|
Bounds |
addXValue(GeoPoint point)
Add an X value.
|
Bounds |
addYValue(GeoPoint point)
Add a Y value.
|
Bounds |
addZValue(GeoPoint point)
Add a Z value.
|
boolean |
checkNoBottomLatitudeBound()
Check if there's no bottom latitude bound.
|
boolean |
checkNoLongitudeBound()
Check if there's no longitude bound.
|
boolean |
checkNoTopLatitudeBound()
Check if there's no top latitude bound.
|
Double |
getLeftLongitude()
Get left longitude, if any.
|
Double |
getMaxLatitude()
Get maximum latitude, if any.
|
Double |
getMinLatitude()
Get minimum latitude, if any.
|
Double |
getRightLongitude()
Get right longitude, if any.
|
Bounds |
isWide()
Signal that the shape exceeds Math.PI in longitude.
|
Bounds |
noBottomLatitudeBound()
Signal that there is no bottom latitude bound.
|
Bounds |
noLongitudeBound()
Signal that there is no longitude bound.
|
Bounds |
noTopLatitudeBound()
Signal that there is no top latitude bound.
|
protected boolean noLongitudeBound
protected boolean noTopLatitudeBound
protected boolean noBottomLatitudeBound
protected Double minLatitude
protected Double maxLatitude
protected Double leftLongitude
protected Double rightLongitude
public Double getMaxLatitude()
public Double getMinLatitude()
public Double getLeftLongitude()
public Double getRightLongitude()
public boolean checkNoLongitudeBound()
public boolean checkNoTopLatitudeBound()
public boolean checkNoBottomLatitudeBound()
public Bounds addPlane(PlanetModel planetModel, Plane plane, Membership... bounds)
Boundspublic Bounds addHorizontalPlane(PlanetModel planetModel, double latitude, Plane horizontalPlane, Membership... bounds)
BoundsaddHorizontalPlane in interface BoundsplanetModel - is the planet model.latitude - is the latitude.horizontalPlane - is the plane.bounds - are the constraints on the plane.public Bounds addVerticalPlane(PlanetModel planetModel, double longitude, Plane verticalPlane, Membership... bounds)
BoundsaddVerticalPlane in interface BoundsplanetModel - is the planet model.longitude - is the longitude.verticalPlane - is the plane.bounds - are the constraints on the plane.public Bounds isWide()
Boundspublic Bounds addXValue(GeoPoint point)
Boundspublic Bounds addYValue(GeoPoint point)
Boundspublic Bounds addZValue(GeoPoint point)
Boundspublic Bounds addPoint(GeoPoint point)
Boundspublic Bounds noLongitudeBound()
BoundsnoLongitudeBound in interface Boundspublic Bounds noTopLatitudeBound()
BoundsnoTopLatitudeBound in interface Boundspublic Bounds noBottomLatitudeBound()
BoundsnoBottomLatitudeBound in interface Boundsprotected void addLatitudeBound(double latitude)
latitude - is the latitude.protected void addLongitudeBound(double longitude)
longitude - is the new longitude value.Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.