isContained static method

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

Determines whether a point is contained in a {@link Geometry}, or lies on its boundary. This is a convenience method for

 Location.EXTERIOR != locate(p, geom)

@param p the point to test @param geom the geometry to test @return true if the point lies in or on the geometry

Implementation

static bool isContained(Coordinate p, Geometry geom) {
  return Location.EXTERIOR != locatePointInGeom(p, geom);
}