GEOS
3.8.0dev

#include <PointLocation.h>
Static Public Member Functions  
static bool  isOnLine (const geom::Coordinate &p, const geom::CoordinateSequence *line) 
static bool  isInRing (const geom::Coordinate &p, const std::vector< const geom::Coordinate * > &ring) 
static bool  isInRing (const geom::Coordinate &p, const geom::CoordinateSequence *ring) 
static int  locateInRing (const geom::Coordinate &p, const std::vector< const geom::Coordinate * > &ring) 
static int  locateInRing (const geom::Coordinate &p, const geom::CoordinateSequence &ring) 
Functions for locating points within basic geometric structures such as lines and rings.

static 
Tests whether a point lies inside or on a ring. The ring may be oriented in either direction. A point lying exactly on the ring boundary is considered to be inside the ring.
This method does not first check the point against the envelope of the ring.
p  point to check for ring inclusion 
ring  an array of coordinates representing the ring (which must have first point identical to last point) 

static 
Tests whether a point lies on the line defined by a list of coordinates.
p  the point to test 
line  the line coordinates 
p  the point to test 
line  the line coordinates 

static 
Determines whether a point lies in the interior, on the boundary, or in the exterior of a ring. The ring may be oriented in either direction.
This method does not first check the point against the envelope of the ring.
p  point to check for ring inclusion 
ring  an array of coordinates representing the ring (which must have first point identical to last point) 