GEOS 3.14.0dev
|
Allows comparing geom::CoordinateSequence
s in an orientation-independent way.
More...
#include <OrientedCoordinateArray.h>
Public Member Functions | |
OrientedCoordinateArray (const geom::CoordinateSequence &p_pts) | |
int | compareTo (const OrientedCoordinateArray &o1) const |
Compares two OrientedCoordinateArray s for their relative order. | |
bool | operator== (const OrientedCoordinateArray &other) const |
Allows comparing geom::CoordinateSequence
s in an orientation-independent way.
|
inline |
Creates a new OrientedCoordinateArray
for the given geom::CoordinateSequence
.
p_pts | the coordinates to orient |
int geos::noding::OrientedCoordinateArray::compareTo | ( | const OrientedCoordinateArray & | o1 | ) | const |
Compares two OrientedCoordinateArray
s for their relative order.
In JTS, this is used automatically by ordered lists. In C++, operator< would be used instead....
Referenced by geos::noding::operator<().