PointInPolygon

function PointInPolygon(const pt: TPointD; const polygon: TArrayOfPointD; fillRule: TFillRule): Boolean;

Warning: This function is only safe to use when fillRule is either frEvenOdd or frNonZero. (When fillRule is frPositive or frNegative the function is unreliable when a 'pt' happens to be on a path. So for these 2 fill rules, the function will always return false.)