intersects method

bool intersects(
  1. Coordinate p,
  2. Geometry geom
)

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;
}