PointInPolygon

Del.» function PointInPolygon(const Pt: TIntPoint; const poly: TPath): Integer;

C++ » int PointInPolygon(const IntPoint pt, const Path &poly); // Function in the ClipperLib namespace.

C#  » public static int PointInPolygon(IntPoint pt, Path poly); // Static method of the Clipper class.

Returns 0 when false, -1 when pt is on poly and +1 when pt is in poly.

It's assumed that 'poly' is closed and does not self-intersect.


See Also

IntPoint, Path