org.deegree.crs.utilities
Class BBox
java.lang.Object
org.deegree.crs.utilities.BBox
public class BBox
- extends Object
The BBox
class TODO add documentation here
- Version:
- $Revision:$, $Date:$
- Author:
- Rutger Bezema, last edited by: $Author:$
Constructor Summary |
BBox(javax.vecmath.Point2d min,
javax.vecmath.Point2d max)
|
BBox(javax.vecmath.Point3d min,
javax.vecmath.Point3d max)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BBox
public BBox(javax.vecmath.Point3d min,
javax.vecmath.Point3d max)
- Parameters:
min
- the minimum of tis bboxmax
- the maximum of this bbox
BBox
public BBox(javax.vecmath.Point2d min,
javax.vecmath.Point2d max)
- Parameters:
min
- the minimum of tis bboxmax
- the maximum of this bbox
getWidth
public double getWidth()
- Returns:
- the distance between the min.x and the max.x
getHeight
public double getHeight()
- Returns:
- the distance between the min.y and the max.y
getDepth
public double getDepth()
- Returns:
- the distance between the min.z and the max.z (if any) else Double.NAN
getLength
public double getLength(int dimension)
- Parameters:
dimension
- to get the length for
- Returns:
- the length of given dimension.
getMax
public final double[] getMax()
- Returns:
- the max.
getMin
public final double[] getMin()
- Returns:
- the min.
getMinimum
public double getMinimum(int dimension)
- Parameters:
dimension
- to return the minimum value for.
- Returns:
- the minimal ordinate along the specified dimension.
getMaximum
public double getMaximum(int dimension)
- Parameters:
dimension
- to return the minimum value for.
- Returns:
- the maximal ordinate along the specified dimension.
getDimension
public int getDimension()
- Returns:
- the dimension of this bbox.
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net