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

org.opengis.pt
Class PT_CoordinatePoint

java.lang.Object
  extended by org.opengis.pt.PT_CoordinatePoint
All Implemented Interfaces:
Serializable, Cloneable

public class PT_CoordinatePoint
extends Object
implements Cloneable, Serializable

A position defined by a list of numbers. The ordinate values are indexed from 0 to (NumDim-1), where NumDim is the dimension of the coordinate system the coordinate point belongs in.

Since:
1.00
Version:
1.01
Author:
Martin Daly, Martin Desruisseaux
See Also:
Serialized Form

Field Summary
 double[] ord
          The ordinates of the coordinate point.
 
Constructor Summary
PT_CoordinatePoint()
          Construct an empty coordinate point.
PT_CoordinatePoint(double x, double y)
          Construct a 2D coordinate from the specified ordinates.
PT_CoordinatePoint(double x, double y, double z)
          Construct a 3D coordinate from the specified ordinates.
 
Method Summary
 Object clone()
          Returns a deep copy of this coordinate.
 boolean equals(Object object)
          Compares the specified object with this coordinate for equality.
 int hashCode()
          Returns a hash value for this coordinate.
 String toString()
          Returns a string representation of this coordinate.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ord

public double[] ord
The ordinates of the coordinate point.

Constructor Detail

PT_CoordinatePoint

public PT_CoordinatePoint()
Construct an empty coordinate point. Caller must initialize ord.


PT_CoordinatePoint

public PT_CoordinatePoint(double x,
                          double y)
Construct a 2D coordinate from the specified ordinates.


PT_CoordinatePoint

public PT_CoordinatePoint(double x,
                          double y,
                          double z)
Construct a 3D coordinate from the specified ordinates.

Method Detail

hashCode

public int hashCode()
Returns a hash value for this coordinate. This value need not remain consistent between different implementations of the same class.

Overrides:
hashCode in class Object

equals

public boolean equals(Object object)
Compares the specified object with this coordinate for equality.

Overrides:
equals in class Object

clone

public Object clone()
Returns a deep copy of this coordinate.

Overrides:
clone in class Object

toString

public String toString()
Returns a string representation of this coordinate. The returned string is implementation dependent. It is usually provided for debugging purposes only.

Overrides:
toString in class Object

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