GEOS 3.11.1
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...
 
bool operator== (const OrientedCoordinateArray &other) const
 

Detailed Description

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

Constructor & Destructor Documentation

◆ OrientedCoordinateArray()

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

◆ compareTo()

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: