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



DistanceToPolygon


Unit: SDL_math2
Class: None
Declaration: function DistanceToPolygon (TestPoint: TPointDouble; Polygon: TPDblArray; IsClosed: boolean): double;

The function DistanceToPolygon returns the closest distance of the point TestPoint to the polygon specified by the array Polygon. If IsClosed is TRUE the polygon is treated as a closed line (i.e. the last point is connected to the first one).


Last Update: 2023-Feb-06