geos::Coordinate Class Reference

Coordinate is the lightweight class used to store coordinates. More...

#include <geos.h>

List of all members.

Public Member Functions

string toString () const

Static Public Member Functions

static int hashCode (double x)

Public Attributes

double x
 x-coordinate
double y
 y-coordinate
double z
 z-coordinate


Detailed Description

Coordinate is the lightweight class used to store coordinates.

It is distinct from Point, which is a subclass of Geometry. Unlike objects of type Point (which contain additional information such as an envelope, a precision model, and spatial reference system information), a Coordinate only contains ordinate values and accessor methods.

Coordinate objects are two-dimensional points, with an additional z-ordinate. JTS does not support any operations on the z-ordinate except the basic accessor functions.

Constructed coordinates will have a z-ordinate of DoubleNotANumber. The standard comparison functions will ignore the z-ordinate.


Member Function Documentation

string geos::Coordinate::toString (  )  const

Returns a string of the form (x,y,z) .

Returns:
a string of the form (x,y,z)

static int geos::Coordinate::hashCode ( double  x  )  [inline, static]

Returns a hash code for a double value, using the algorithm from Joshua Bloch's book Effective Java


The documentation for this class was generated from the following files:
Generated on Mon Jan 8 23:49:01 2007 for GEOS by  doxygen 1.5.1