Main Page | Packages | Class Hierarchy | Alphabetical List | Compound List | Namespace Members | Compound Members | Related Pages

SRM.Coord2D Class Reference

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

Inheritance diagram for SRM.Coord2D:

Inheritance graph
[legend]
List of all members.

Public Member Functions

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

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

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

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


Protected Member Functions

 Coord2D (BaseSRF assocSRF, Coord_ClassType type)
 Constructor setting the associated SRF and the concrete class type.


Protected Attributes

double[] _values = new double [2]
 An array to store the coordinate component values.


Detailed Description

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

See also:
Coord


Member Function Documentation

void SRM.Coord2D.copyTo Coord2D  coord  )  throws SrmException
 

Copies the component values from this coordinate to the parameter coordinate.

Note:
The parameter coordinate and this coordinate must be associated with the same SRF.

double [] SRM.Coord2D.getValues  )  [virtual]
 

Returns the coordinate component values as an array.

Returns:
an array of size 2 containing the 2D coordinate component values

Implements SRM.Coord.

boolean SRM.Coord2D.isEqual Coord  coord  )  [virtual]
 

Returns TRUE if the coordinate component values are "equal".

Note:
Two components of type "double" are equal if their difference is within Const.EPSILON

Implements SRM.Coord.

Reimplemented in SRM.Coord2D_LocalSpaceAzimuthal, SRM.Coord2D_LocalSpacePolar, and SRM.Coord2D_LocalSpaceRectangular2D.

void SRM.Coord2D.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


The documentation for this class was generated from the following file:
Spatial Reference Model Java API Version 4.4.0 - January 21, 2010
Copyright © 2010 SEDRIS Docs by Doxygen 1.3.2