IsPointInPolygon function
Determines if the specified point is inside the vertices for the specified polygon.
Declaration
function IsPointInPolygon(AX: Integer; AY: Integer;
const APolygon: Array of TPoint): BooleanArguments
AX | Horizontal coordinate for the point. |
AY | Vertical coordinate for the point. |
APolygon | Array with the TPoint values that define the vertices for the polygon. |
Function result
True when the specified point is located within the polygon using the specified vertices.Description
The function will return True if the point at AX, AY is inside the specified polygon. Returns False if it is not.
Original C code: http://www.visibone.com/inpoly/inpoly.c.txt .
Translated from C to Pascal by: Felipe Monteiro de Carvalho.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
