Whether a point is inside a simple polygon, its own boundary included.
polygonInside, polygonsOverlap and footprint-ring placement share this answer. A point on an edge or vertex counts as inside under pointOnSegment's scale-relative PLANAR_EPSILON tolerance. The polygon is an implicitly closed simple ring in either winding; an empty ring contains nothing. Self-crossing rings are outside the geometric contract even though the loop still evaluates parity.
Whether a point is inside a simple polygon, its own boundary included.
polygonInside, polygonsOverlap and footprint-ring placement share this answer. A point on an edge or vertex counts as inside under pointOnSegment's scale-relative
PLANAR_EPSILONtolerance. The polygon is an implicitly closed simple ring in either winding; an empty ring contains nothing. Self-crossing rings are outside the geometric contract even though the loop still evaluates parity.