20 #ifndef GEOS_ALGORITHM_RAYCROSSINGCOUNTER_H
21 #define GEOS_ALGORITHM_RAYCROSSINGCOUNTER_H
23 #include <geos/export.h>
31 class CoordinateSequence;
74 bool isPointOnSegment;
94 const std::vector<const geom::Coordinate*>& ring);
115 isPointOnSegment( false)
138 return isPointOnSegment;
170 #endif // GEOS_ALGORITHM_RAYCROSSINGCOUNTER_H
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
Counts the number of segments crossed by a horizontal ray extending to the right from a given point,...
Definition: RayCrossingCounter.h:67
void countSegment(const geom::Coordinate &p1, const geom::Coordinate &p2)
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
static int locatePointInRing(const geom::Coordinate &p, const geom::CoordinateSequence &ring)
static int locatePointInRing(const geom::Coordinate &p, const std::vector< const geom::Coordinate * > &ring)
Semantically equal to the above, just different args encoding.
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:59
bool isOnSegment()
Definition: RayCrossingCounter.h:136
static int orientationIndex(const geom::Coordinate &p1, const geom::Coordinate &p2, const geom::Coordinate &q)
Returns the index of the direction of the point q relative to a vector specified by p1-p2.