The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



PointIsInsidePolygon


Unit: SDL_math2
Class: none
Declaration: function PointIsInsidePolygon (x, y: double; Polygon: TPDblArray): boolean;

The function PointIsInsidePolygon returns TRUE if the point [x,y] is inside the polygon given by the array Polygon.

Hint: Please note the subtle difference between the functions PointIsInsidePolygon and PointIsInsideConvexHull. While PointIsInsidePolygon delivers valid results for any kind of polgyon (even for polygons intersecting themselves), the function PointIsInsideConvexHull works only for convex polygons.



Last Update: 2023-Feb-06