GEOS 3.16.0dev
Public Member Functions | List of all members
geos::operation::distance::CoordinateSequenceLocation Class Reference

#include <CoordinateSequenceLocation.h>

Public Member Functions

 CoordinateSequenceLocation (const geom::CoordinateSequence *seq, std::size_t index, const geom::CoordinateXY &pt)
 
const geom::CoordinateXY & getCoordinate () const
 
std::size_t getIndex () const
 
bool isSameSegment (const CoordinateSequenceLocation &f) const
 
const geom::CoordinateXY & getEndPoint (int i) const
 
std::size_t normalize (std::size_t index) const
 

Detailed Description

A location on a FacetSequence.

Location indexes are always the index of a sequence segment. Thus they are always less than the number of vertices in the sequence. The endpoint in a sequence has the index of the final segment in the sequence. If the sequence is a ring, the index of the final endpoint is normalized to 0.

Author
Martin Davis

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