20 #ifndef GEOS_ALGORITHM_RAYCROSSINGCOUNTER_H
21 #define GEOS_ALGORITHM_RAYCROSSINGCOUNTER_H
23 #include <geos/export.h>
24 #include <geos/geom/Location.h>
32 class CoordinateSequence;
72 bool isPointOnSegment;
93 const std::vector<const geom::Coordinate*>& ring);
98 isPointOnSegment(false)
122 return isPointOnSegment;
153 #endif // GEOS_ALGORITHM_RAYCROSSINGCOUNTER_H
Location
Constants representing the location of a point relative to a geometry.
Definition: Location.h:34
bool isPointInPolygon()
Tests whether the point lies in or on the ring, polygon or multipolygon from which the processed segm...
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:26
geom::Location getLocation()
Gets the Location of the point relative to the ring, polygon or multipolygon from which the processed...
Counts the number of segments crossed by a horizontal ray extending to the right from a given point,...
Definition: RayCrossingCounter.h:65
static geom::Location locatePointInRing(const geom::Coordinate &p, const std::vector< const geom::Coordinate * > &ring)
Semantically equal to the above, just different args encoding.
void countSegment(const geom::Coordinate &p1, const geom::Coordinate &p2)
Counts a segment.
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:58
static geom::Location locatePointInRing(const geom::Coordinate &p, const geom::CoordinateSequence &ring)
Determines the Location of a point in a ring.
bool isOnSegment()
Reports whether the point lies exactly on one of the supplied segments.
Definition: RayCrossingCounter.h:120