deegree 2.2 (2008/12/22 11:33 build-3038-official)

org.deegree.crs.utilities
Class BBox

java.lang.Object
  extended by 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)
           
 
Method Summary
 double getDepth()
           
 int getDimension()
           
 double getHeight()
           
 double getLength(int dimension)
           
 double[] getMax()
           
 double getMaximum(int dimension)
           
 double[] getMin()
           
 double getMinimum(int dimension)
           
 double getWidth()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BBox

public BBox(javax.vecmath.Point3d min,
            javax.vecmath.Point3d max)
Parameters:
min - the minimum of tis bbox
max - the maximum of this bbox

BBox

public BBox(javax.vecmath.Point2d min,
            javax.vecmath.Point2d max)
Parameters:
min - the minimum of tis bbox
max - the maximum of this bbox
Method Detail

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.

deegree 2.2 (2008/12/22 11:33 build-3038-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net