Modifier and Type | Field and Description |
---|---|
protected static double |
FUDGE_FACTOR
A 'fudge factor', which is added to maximums and subtracted from minimums,
in order to compensate for potential error deltas.
|
protected Double |
maxX
Maximum x
|
protected Double |
maxY
Maximum y
|
protected Double |
maxZ
Maximum z
|
protected Double |
minX
Minimum x
|
protected Double |
minY
Minimum y
|
protected Double |
minZ
Minimum z
|
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
|
Constructor and Description |
---|
XYZBounds()
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.
|
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.
|
Double |
getMaximumX()
Return the maximum X value.
|
Double |
getMaximumY()
Return the maximum Y value.
|
Double |
getMaximumZ()
Return the maximum Z value.
|
Double |
getMinimumX()
Return the minimum X value.
|
Double |
getMinimumY()
Return the minimum Y value.
|
Double |
getMinimumZ()
Return the minimum Z value.
|
boolean |
isLargestMaxX(PlanetModel planetModel)
Return true if maxX is as large as the planet model allows.
|
boolean |
isLargestMaxY(PlanetModel planetModel)
Return true if maxY is as large as the planet model allows.
|
boolean |
isLargestMaxZ(PlanetModel planetModel)
Return true if maxZ is as large as the planet model allows.
|
boolean |
isSmallestMinX(PlanetModel planetModel)
Return true if minX is as small as the planet model allows.
|
boolean |
isSmallestMinY(PlanetModel planetModel)
Return true if minY is as small as the planet model allows.
|
boolean |
isSmallestMinZ(PlanetModel planetModel)
Return true if minZ is as small as the planet model allows.
|
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 static final double FUDGE_FACTOR
protected Double minX
protected Double maxX
protected Double minY
protected Double maxY
protected Double minZ
protected Double maxZ
protected boolean noLongitudeBound
protected boolean noTopLatitudeBound
protected boolean noBottomLatitudeBound
public Double getMinimumX()
public Double getMaximumX()
public Double getMinimumY()
public Double getMaximumY()
public Double getMinimumZ()
public Double getMaximumZ()
public boolean isSmallestMinX(PlanetModel planetModel)
public boolean isLargestMaxX(PlanetModel planetModel)
public boolean isSmallestMinY(PlanetModel planetModel)
public boolean isLargestMaxY(PlanetModel planetModel)
public boolean isSmallestMinZ(PlanetModel planetModel)
public boolean isLargestMaxZ(PlanetModel planetModel)
public Bounds addPlane(PlanetModel planetModel, Plane plane, Membership... bounds)
Bounds
public Bounds addHorizontalPlane(PlanetModel planetModel, double latitude, Plane horizontalPlane, Membership... bounds)
addHorizontalPlane
in interface Bounds
planetModel
- 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)
addVerticalPlane
in interface Bounds
planetModel
- is the planet model.longitude
- is the longitude.verticalPlane
- is the plane.bounds
- are the constraints on the plane.public Bounds addXValue(GeoPoint point)
Bounds
public Bounds addYValue(GeoPoint point)
Bounds
public Bounds addZValue(GeoPoint point)
Bounds
public Bounds addPoint(GeoPoint point)
Bounds
public Bounds isWide()
Bounds
public Bounds noLongitudeBound()
Bounds
noLongitudeBound
in interface Bounds
public Bounds noTopLatitudeBound()
Bounds
noTopLatitudeBound
in interface Bounds
public Bounds noBottomLatitudeBound()
Bounds
noBottomLatitudeBound
in interface Bounds
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.