isInRing static method
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.
@param p point to check for ring inclusion @param ring an array of coordinates representing the ring (which must have first point identical to last point) @return true if p is inside ring
@see locatePointInRing
Implementation
static bool isInRing(Coordinate p, List<Coordinate> ring) {
return PointLocation.locateInRing(p, ring) != Location.EXTERIOR;
}