GEOS  3.8.0dev
Public Member Functions | List of all members
geos::noding::OrientedCoordinateArray Class Reference

Allows comparing geom::CoordinateSequences 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 OrientedCoordinateArrays for their relative order. More...
 

Detailed Description

Allows comparing geom::CoordinateSequences in an orientation-independent way.

Constructor & Destructor Documentation

geos::noding::OrientedCoordinateArray::OrientedCoordinateArray ( const geom::CoordinateSequence p_pts)
inline

Creates a new OrientedCoordinateArray for the given geom::CoordinateSequence.

Parameters
p_ptsthe coordinates to orient

Member Function Documentation

int geos::noding::OrientedCoordinateArray::compareTo ( const OrientedCoordinateArray o1) const

Compares two OrientedCoordinateArrays for their relative order.

Returns
-1 this one is smaller
0 the two objects are equal
1 this one is greater

In JTS, this is used automatically by ordered lists. In C++, operator< would be used instead....

Referenced by geos::noding::operator<().


The documentation for this class was generated from the following file: