org.jscience.geography.coordinates
Class Coord2D

java.lang.Object
  extended by org.jscience.geography.coordinates.Coord
      extended by org.jscience.geography.coordinates.Coord2D
All Implemented Interfaces:
java.lang.Cloneable, Coordinates
Direct Known Subclasses:
Coord2D_LocalSpaceAzimuthal, Coord2D_LocalSpacePolar, Coord2D_LocalSpaceRectangular2D

public abstract class Coord2D
extends Coord

The Coord2D abstract class is used for representing 2D coordinates.

See Also:
Coord

Field Summary
protected  double[] _values
           
 
Constructor Summary
protected Coord2D(BaseSRF assocSRF, org.jscience.geography.coordinates.Coord_ClassType type)
           
 
Method Summary
 void copyTo(Coord2D coord)
          Copies the component values from this coordinate to the parameter coordinate.
 double[] getValues()
          Returns the coordinate component values as an array
 boolean isEqual(Coord coord)
          Returns TRUE if the coordinate component values are "equal"
 void setValues(double[] values)
          Sets the coordinate component values as an array
 
Methods inherited from class org.jscience.geography.coordinates.Coord
getClassType, getSRF, makeClone, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_values

protected double[] _values
Constructor Detail

Coord2D

protected Coord2D(BaseSRF assocSRF,
                  org.jscience.geography.coordinates.Coord_ClassType type)
Method Detail

getValues

public double[] getValues()
Returns the coordinate component values as an array

Specified by:
getValues in interface Coordinates
Specified by:
getValues in class Coord
Returns:
an array of size 2 containing the 2D coordinate component values

setValues

public void setValues(double[] values)
               throws SrmException
Sets the coordinate component values as an array

Parameters:
values - in: array of size 2 containing the 2D coordinate component values
Throws:
SrmException

isEqual

public boolean isEqual(Coord coord)
Returns TRUE if the coordinate component values are "equal"

Specified by:
isEqual in class Coord
Parameters:
coord - DOCUMENT ME!
Returns:
DOCUMENT ME!

copyTo

public void copyTo(Coord2D coord)
            throws SrmException
Copies the component values from this coordinate to the parameter coordinate.

Throws:
SrmException