intersects method
Convenience method to test a point for intersection with
a Geometry
@param p the coordinate to test
@param geom the Geometry to test
@return true
if the point is in the interior or boundary of the Geometry
Implementation
bool intersects(Coordinate p, Geometry geom) {
return locate(p, geom) != Location.EXTERIOR;
}