16 #ifndef GEOS_GEOM_COORDINATE_H
17 #define GEOS_GEOM_COORDINATE_H
19 #include <geos/export.h>
20 #include <geos/platform.h>
21 #include <geos/inline.h>
30 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
36 struct CoordinateLessThen;
69 typedef std::set<const Coordinate *, CoordinateLessThen>
ConstSet;
78 typedef std::vector<Coordinate>
Vect;
97 Coordinate(
double xNew=0.0,
double yNew=0.0,
double zNew=DoubleNotANumber);
111 std::string toString()
const;
119 int hashCode()
const;
125 static int hashCode(
double d);
143 GEOS_DLL std::ostream&
operator<< (std::ostream& os,
const Coordinate& c);
146 GEOS_DLL
bool operator==(
const Coordinate& a,
const Coordinate& b);
149 GEOS_DLL
bool operator!=(
const Coordinate& a,
const Coordinate& b);
161 # include "geos/geom/Coordinate.inl"
164 #endif // ndef GEOS_GEOM_COORDINATE_H
std::vector< const Coordinate * > ConstVect
A vector of const Coordinate pointers.
Definition: Coordinate.h:72
double y
y-coordinate
Definition: Coordinate.h:84
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:61
Strict weak ordering Functor for Coordinate.
Definition: Coordinate.h:130
std::stack< const Coordinate * > ConstStack
A stack of const Coordinate pointers.
Definition: Coordinate.h:75
GEOS_DLL std::ostream & operator<<(std::ostream &os, const Coordinate &c)
Output function.
bool operator<(const Coordinate &a, const Coordinate &b)
Strict weak ordering operator for Coordinate.
Definition: Coordinate.h:138
std::vector< Coordinate > Vect
A vector of Coordinate objects (real object, not pointers)
Definition: Coordinate.h:78
GEOS_DLL bool operator==(const Coordinate &a, const Coordinate &b)
Equality operator for Coordinate. 2D only.
double x
x-coordinate
Definition: Coordinate.h:81
double z
z-coordinate
Definition: Coordinate.h:87
GEOS_DLL bool operator!=(const Coordinate &a, const Coordinate &b)
Inequality operator for Coordinate. 2D only.
std::set< const Coordinate *, CoordinateLessThen > ConstSet
A set of const Coordinate pointers.
Definition: Coordinate.h:69