org.opengis.pt
Class PT_CoordinatePoint

java.lang.Object
  extended byorg.opengis.pt.PT_CoordinatePoint
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class PT_CoordinatePoint
extends java.lang.Object
implements java.lang.Cloneable, java.io.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.
private static long serialVersionUID
          Use serialVersionUID from first draft for interoperability with CSS 1.00.
 
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
 java.lang.Object clone()
          Returns a deep copy of this coordinate.
 boolean equals(java.lang.Object object)
          Compares the specified object with this coordinate for equality.
 int hashCode()
          Returns a hash value for this coordinate.
 java.lang.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

serialVersionUID

private static final long serialVersionUID
Use serialVersionUID from first draft for interoperability with CSS 1.00.

See Also:
Constant Field Values

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.


equals

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


clone

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


toString

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