Expand description
Point-in-polygon and segment intersection for convex polygons.
Functions§
- collinear_
segments_ overlap_ area - Collinear segment overlap: true if two collinear segments share more than a point.
- point_
inside_ or_ on_ boundary - True if point is inside OR on the boundary of a polygon (convex or non-convex).
- point_
on_ polygon_ boundary - True if point (px, py) is on the boundary of the polygon (on any edge).
- point_
strictly_ inside_ convex - True if point (px, py) is strictly inside the convex polygon. Uses cross-product sign consistency: for CCW polygon, point is inside iff it’s on the left side of ALL edges (all cross products positive).