TTMSFNCGraphics.PointInPolygon Method
Tests whether a floating-point point lies inside a polygon.
API unit family: TMSFNCGraphics
Declaring type: TTMSFNCGraphics
Overloads
Overload 1
Tests whether a floating-point point lies inside a polygon.
class function PointInPolygon(APoint: TPointF; APolygon: TTMSFNCGraphicsPathPolygon): Boolean; overload; virtual;
Parameters
| Name | Description |
|---|---|
APoint |
Floating-point point to test. |
APolygon |
Array of floating-point vertices defining the polygon. |
Returns
True if APoint lies inside or on the edge of APolygon.
Overload 2
Tests whether an integer point lies inside a polygon.
class function PointInPolygon(APoint: TPoint; APolygon: TTMSFNCGraphicsPathPolygon): Boolean; overload; virtual;
Parameters
| Name | Description |
|---|---|
APoint |
Integer point to test. |
APolygon |
Array of floating-point vertices defining the polygon. |
Returns
True if APoint lies inside or on the edge of APolygon.