locateInPolygonRing method

int locateInPolygonRing(
  1. Coordinate p,
  2. LinearRing ring
)

Implementation

int locateInPolygonRing(Coordinate p, LinearRing ring) {
  // bounding-box check
  if (!ring.getEnvelopeInternal().intersectsCoordinate(p))
    return Location.EXTERIOR;

  return PointLocation.locateInRing(p, ring.getCoordinates());
}