locateInRing static method

int locateInRing(
  1. Coordinate p,
  2. List<Coordinate> ring
)

Determines whether a point lies in the interior, on the boundary, or in the exterior of a ring. The ring may be oriented in either direction.

This method does not first check the point against the envelope of the ring.

@param p point to check for ring inclusion @param ring an array of coordinates representing the ring (which must have first point identical to last point) @return the {@link Location} of p relative to the ring

Implementation

static int locateInRing(Coordinate p, List<Coordinate> ring) {
  return RayCrossingCounter.locatePointInRingList(p, ring);
}