public class BoundingBox
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
double |
maxX
The coordinates for a 2 dim bounding box as defined in wms.
|
double |
maxY
The coordinates for a 2 dim bounding box as defined in wms.
|
double |
minX
The coordinates for a 2 dim bounding box as defined in wms.
|
double |
minY
The coordinates for a 2 dim bounding box as defined in wms.
|
double |
resX
The resolution in x direction.
|
double |
resY
The resolution in y direction.
|
Constructor and Description |
---|
BoundingBox(double x,
double y,
double X,
double Y)
Create a new bounding box object.
|
BoundingBox(double x,
double y,
double X,
double Y,
double rx,
double ry)
Create a new bounding box object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
covers(BoundingBox otherBox)
A very basic check if the supplied bounding box is completely covered by this.
|
boolean |
disjoint(BoundingBox otherBox)
Check whether the supplied bounding box and this are completely disjoint.
|
java.lang.String |
toString()
Return a string containing a comma separated list of min x, min y, max x, max y.
|
public double minX
public double minY
public double maxX
public double maxY
public double resX
public double resY
public BoundingBox(double x, double y, double X, double Y) throws WMSException
x
- the minimum x coordinatey
- the minimum y coordinateX
- the maximum x coordinateY
- the maximum y coordinateWMSException
- on parameter inconsistenciespublic BoundingBox(double x, double y, double X, double Y, double rx, double ry) throws WMSException
x
- the minimum x coordinatey
- the minimum y coordinateX
- the maximum x coordinateY
- the maximum y coordinaterx
- the resolution in x directionry
- the resolution in y directionWMSException
- on parameter inconsistenciespublic boolean covers(BoundingBox otherBox)
otherBox
- the box that is supposed to be completely coveredpublic boolean disjoint(BoundingBox otherBox)
otherBox
- the box that is to be intersectedpublic java.lang.String toString()
toString
in class java.lang.Object