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....


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

The function PointIsInsideConvexHull returns TRUE if the point [x,y] is inside the convex hull given by the array ConvexHull.

Hint: PointIsInsideConvexHull works correctly only for convex polygons. For a more general solution you should use the function PointIsInsidePolygon.

Example: This method is used in the following example program (see for downloading the code): convexhull

Last Update: 2023-Feb-06