21#include <geos/export.h>
22#include <geos/geom/Location.h>
30class CoordinateSequence;
54 static bool isOnSegment(
const geom::CoordinateXY& p,
const geom::CoordinateXY& p0,
const geom::CoordinateXY& p1);
83 static bool isInRing(
const geom::CoordinateXY& p,
const std::vector<const geom::Coordinate*>& ring);
100 static geom::Location locateInRing(
const geom::CoordinateXY& p,
const geom::Curve& ring);
Functions for locating points within basic geometric structures such as lines and rings.
Definition PointLocation.h:43
static bool isOnSegment(const geom::CoordinateXY &p, const geom::CoordinateXY &p0, const geom::CoordinateXY &p1)
Tests whether a point lies on a line segment.
static bool isOnLine(const geom::CoordinateXY &p, const geom::CoordinateSequence *line)
Tests whether a point lies on the line defined by a CoordinateSequence.
static bool isInRing(const geom::CoordinateXY &p, const std::vector< const geom::Coordinate * > &ring)
Tests whether a point lies inside or on a ring.
static geom::Location locateInRing(const geom::CoordinateXY &p, const std::vector< const geom::Coordinate * > &ring)
Determines whether a point lies in the interior, on the boundary, or in the exterior of a ring....
The internal representation of a list of coordinates inside a Geometry.
Definition CoordinateSequence.h:56
Location
Constants representing the location of a point relative to a geometry.
Definition Location.h:32
Basic namespace for all GEOS functionalities.
Definition geos.h:39