PtOnLine
Determines whether a specified point belongs to a polyline.
Unit
function PtOnLine(LType: TLineType; var Points; Count,Delta,X,Y: Integer): Boolean;
PtOnLine returns True if a point, specified by X and Y, belongs to a polyline. LType determines the polyline type. The Points parameter is a pointer to an array that contains coordinates of vertices. Count specifies the number of vertices in a polyline. Delta determines the smallest distance within which a point, outside of the line, is still considered to belong to the line.
Note
To use this function, you should include:
‘Lines‘ in the uses section of a unit (for Delphi) or
‘#include Lines.hpp‘ in the header file (for C++ Builder)
See Also