#include <geos.h>
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 | |
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.
| string geos::Coordinate::toString | ( | ) | const |
Returns a string of the form (x,y,z) .
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
1.5.4