15 #ifndef GEOS_GEOM_COORDINATE_H 16 #define GEOS_GEOM_COORDINATE_H 29 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class 35 struct CoordinateLessThen;
68 typedef std::set<const Coordinate*, CoordinateLessThen>
ConstSet;
77 typedef std::vector<Coordinate>
Vect;
108 std::string toString()
const;
116 double distanceSquared(
const Coordinate& p)
const;
119 size_t operator()(
const Coordinate & c)
const;
158 # include "geos/geom/Coordinate.inl" 161 #endif // ndef GEOS_GEOM_COORDINATE_H
Coordinate is the lightweight class used to store coordinates.
Strict weak ordering Functor for Coordinate.
std::set< const Coordinate *, CoordinateLessThen > ConstSet
A set of const Coordinate pointers.
bool operator<(const Coordinate &a, const Coordinate &b)
Strict weak ordering operator for Coordinate.
std::vector< const Coordinate * > ConstVect
A vector of const Coordinate pointers.
std::ostream & operator<<(std::ostream &os, const Coordinate &c)
Output function.
Basic namespace for all GEOS functionalities.
bool operator!=(const Coordinate &a, const Coordinate &b)
Inequality operator for Coordinate. 2D only.
constexpr double DoubleNotANumber
std::vector< Coordinate > Vect
A vector of Coordinate objects (real object, not pointers)
bool operator==(const Coordinate &a, const Coordinate &b)
Equality operator for Coordinate. 2D only.
std::stack< const Coordinate * > ConstStack
A stack of const Coordinate pointers.
static Coordinate _nullCoord