isPointInPolygon method

bool isPointInPolygon()

Tests whether the point lies in or on the ring, polygon or multipolygon from which the processed segments were provided.

This method only determines the correct location if all relevant segments must have been processed.

@return true if the point lies in or on the supplied polygon

Implementation

bool isPointInPolygon() {
  return getLocation() != Location.EXTERIOR;
}