Difference between revisions of "TPAFilterCircle"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> procedure TPAFiltersCircle(var TPA: TPointArray; const Center: TPoint; const Radius: Extended); </source> ==Availability== SCAR...") |
|||
Line 29: | Line 29: | ||
==See Also== | ==See Also== | ||
*[[TPAExtractCircle]] | *[[TPAExtractCircle]] | ||
+ | *[[TPAFilterTriangle]] | ||
*[[TPAFilterPie]] | *[[TPAFilterPie]] | ||
*[[TPAFilterBoxes]] | *[[TPAFilterBoxes]] |
Latest revision as of 13:04, 21 November 2012
Definition
procedure TPAFiltersCircle(var TPA: TPointArray; const Center: TPoint; const Radius: Extended);
Availability
SCAR Divi 3.33 > Current
Description
Filters points from a given TPointArray TPA by removing all points that are inside of the given circle area. Center determines the center of the circle and 'Radius represents the radius from the center you wish to extract.
Example
var TPA: TPointArray; begin TPA := [Point(0, 0), Point(2, 2), Point(2, 3), Point(5, 10)]; WriteLn(TPAToStr(TPA)); TPAFilterCircle(TPA, Point(0, 0), 4); WriteLn('Filtered: ' + TPAToStr(TPA)); end.
Output:
(0,0);(2,2);(2,3);(5,10) Filtered: (5,10)