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

org.deegree.io.rtree
Class HyperPoint

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

public class HyperPoint
extends java.lang.Object
implements java.io.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  java.lang.Object clone()
          Implements clone.
 boolean equals(java.lang.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.
 java.lang.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 java.lang.String toString()
Builds a String representation of the HyperPoint.

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)

clone

protected java.lang.Object clone()
Implements clone.

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

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