deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.io.rtree
Class HyperBoundingBox

java.lang.Object
  extended by org.deegree.io.rtree.HyperBoundingBox
All Implemented Interfaces:
Serializable

public class HyperBoundingBox
extends Object
implements Serializable

HyperBoundingBox implementing a bounding box object in the multidimensional space.

Author:
Wolfgang Baer - WBaer@gmx.de
See Also:
Serialized Form

Constructor Summary
HyperBoundingBox(HyperPoint pMin, HyperPoint pMax)
          Constructor.
 
Method Summary
protected  Object clone()
          Deep copy.
 boolean contains(HyperBoundingBox box)
          Tests if this contains the given HyperBoundingBox overlaps.
 boolean equals(Object obj)
          Implements equals
 double getArea()
          Computes the area (over all dimension) of this.
 int getDimension()
          Returns the dimension of this HyperBoundingBox.
protected static HyperBoundingBox getNullHyperBoundingBox(int dimension)
          Creates a null HyperBoundingBox with null HyperPoints.
 HyperPoint getPMax()
          Returns the maximum HyperPoint
 HyperPoint getPMin()
          Returns the minimum HyperPoint
 double minDist(HyperPoint point)
          Computes the minimal distance square of this to the given HyperPoint.
 boolean overlaps(HyperBoundingBox box)
          Tests if this and the given HyperBoundingBox overlaps.
 String toString()
          Builds a String representation of the HyperBoundingBox.
 HyperBoundingBox unionBoundingBox(HyperBoundingBox box)
          Computes the union of this with the given HyperBoundingBox.
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HyperBoundingBox

public HyperBoundingBox(HyperPoint pMin,
                        HyperPoint pMax)
Constructor.
Creates a HyperBoundingBox for given HyperPoints.

Parameters:
pMin - - min point
pMax - - max point
Method Detail

getNullHyperBoundingBox

protected static HyperBoundingBox getNullHyperBoundingBox(int dimension)
Creates a null HyperBoundingBox with null HyperPoints. Mostly used internal.

Parameters:
dimension - - int for dimension of point
Returns:
HyperBoundingBox

getPMin

public HyperPoint getPMin()
Returns the minimum HyperPoint

Returns:
HyperPoint

getPMax

public HyperPoint getPMax()
Returns the maximum HyperPoint

Returns:
HyperPoint

getDimension

public int getDimension()
Returns the dimension of this HyperBoundingBox.

Returns:
int

overlaps

public boolean overlaps(HyperBoundingBox box)
Tests if this and the given HyperBoundingBox overlaps.

Parameters:
box - - HyperBoundingBox to test
Returns:
boolean

contains

public boolean contains(HyperBoundingBox box)
Tests if this contains the given HyperBoundingBox overlaps.

Parameters:
box - - HyperBoundingBox to test
Returns:
boolean

getArea

public double getArea()
Computes the area (over all dimension) of this.

Returns:
double

unionBoundingBox

public HyperBoundingBox unionBoundingBox(HyperBoundingBox box)
Computes the union of this with the given HyperBoundingBox.

Parameters:
box - - given HyperBoundingBox
Returns:
HyperBoundingBox

minDist

public double minDist(HyperPoint point)
Computes the minimal distance square of this to the given HyperPoint. After Roussopoulos Nick: Nearest Neighbor Queries - MINDIST

Parameters:
point - - HyperPoint
Returns:
double

clone

protected Object clone()
Deep copy.

Overrides:
clone in class Object
See Also:
Object.clone()

toString

public String toString()
Builds a String representation of the HyperBoundingBox.

Overrides:
toString in class Object
Returns:
String

equals

public boolean equals(Object obj)
Implements equals

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

deegree 2.3 (2010/04/09 10:10 build-4-official)

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