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

org.deegree.io.rtree
Class HyperPoint

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

public class HyperPoint
extends Object
implements Serializable

Point in multidimensional space. Based on double coordinates.

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

Constructor Summary
HyperPoint(double[] coords)
          Constructor.
 
Method Summary
protected  Object clone()
          Implements clone.
 boolean equals(Object obj)
          Implements equals
 double getCoord(int index)
          Returns the coordinate for given index.
 double[] getCoords()
          Returns the coordinates as double array.
 int getDimension()
          Returns the dimension of the HyperPoint.
protected static HyperPoint getNullHyperPoint(int dimension)
          Creates a null HyperPoint with coordinates Double.NaN.
 String toString()
          Builds a String representation of the HyperPoint.
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HyperPoint

public HyperPoint(double[] coords)
Constructor.
Length of given array sets the dimension.

Parameters:
coords - - array with double values of the coordinates.
Method Detail

getNullHyperPoint

protected static HyperPoint getNullHyperPoint(int dimension)
Creates a null HyperPoint with coordinates Double.NaN. Mostly used internal.

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

getCoords

public double[] getCoords()
Returns the coordinates as double array.

Returns:
double[]

getCoord

public double getCoord(int index)
Returns the coordinate for given index.

Parameters:
index - - int
Returns:
double - coordinate

getDimension

public int getDimension()
Returns the dimension of the HyperPoint.

Returns:
int

toString

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

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)

clone

protected Object clone()
Implements clone.

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

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