containsPointInPolygon static method
Determines whether a point lies in a {@link Polygon}. If the point lies on the polygon boundary it is considered to be inside.
@param p the point to test @param poly the geometry to test @return true if the point lies in or on the polygon
Implementation
static bool containsPointInPolygon(Coordinate p, Polygon poly) {
return Location.EXTERIOR != locatePointInPolygon(p, poly);
}