GEOS
3.9.1dev
|
Allows comparing geom::CoordinateSequences in an orientation-independent way. More...
#include <OrientedCoordinateArray.h>
Classes | |
struct | HashCode |
Public Member Functions | |
OrientedCoordinateArray (const geom::CoordinateSequence &p_pts) | |
int | compareTo (const OrientedCoordinateArray &o1) const |
Compares two OrientedCoordinateArrays for their relative order. More... | |
bool | operator== (const OrientedCoordinateArray &other) const |
Static Private Member Functions | |
static int | compareOriented (const geom::CoordinateSequence &pts1, bool orientation1, const geom::CoordinateSequence &pts2, bool orientation2) |
static bool | orientation (const geom::CoordinateSequence &pts) |
Private Attributes | |
const geom::CoordinateSequence * | pts |
Externally owned. More... | |
bool | orientationVar |
Allows comparing geom::CoordinateSequences in an orientation-independent way.
Definition at line 43 of file OrientedCoordinateArray.h.
|
inline |
Creates a new OrientedCoordinateArray for the given geom::CoordinateSequence.
p_pts | the coordinates to orient |
Definition at line 52 of file OrientedCoordinateArray.h.
References geos::geom::operator==().
|
staticprivate |
int geos::noding::OrientedCoordinateArray::compareTo | ( | const OrientedCoordinateArray & | o1 | ) | const |
Compares two OrientedCoordinateArrays 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<().
bool geos::noding::OrientedCoordinateArray::operator== | ( | const OrientedCoordinateArray & | other | ) | const |
|
staticprivate |
Computes the canonical orientation for a coordinate array.
pts | the array to test |
true
if the points are oriented forwards false
if the points are oriented in reverse
|
private |
Definition at line 98 of file OrientedCoordinateArray.h.
|
private |
Externally owned.
Definition at line 96 of file OrientedCoordinateArray.h.