deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.io.rtree
Class HyperBoundingBox

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

public class HyperBoundingBox
extends java.lang.Object
implements java.io.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  java.lang.Object clone()
          Deep copy.
 boolean contains(HyperBoundingBox box)
          Tests if this contains the given HyperBoundingBox overlaps.
 boolean equals(java.lang.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.
 java.lang.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 java.lang.Object clone()
Deep copy.

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

toString

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

Overrides:
toString in class java.lang.Object
Returns:
String

equals

public boolean equals(java.lang.Object obj)
Implements equals

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

deegree 2.5 (2011/06/29 09:44 build-8-official)

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