Difference between revisions of "TPAFilterPoints"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> procedure TPAFilterPoints(var TPA: TPointArray; const FilterTPA: TPointArray); </source> ==Availability== SCAR Divi 3.25 > Curr...") |
(→Availability) |
||
Line 5: | Line 5: | ||
==Availability== | ==Availability== | ||
− | SCAR Divi 3. | + | SCAR Divi 3.26 > Current |
==Description== | ==Description== |
Latest revision as of 08:16, 3 July 2011
Definition
procedure TPAFilterPoints(var TPA: TPointArray; const FilterTPA: TPointArray);
Availability
SCAR Divi 3.26 > Current
Description
Filters a TPointArray TPA by removing all coordinates that are part of the given TPointArray FilterTPA.
Example
var TPA: TPointArray; begin TPA := [Point(0, 0), Point(2, 2), Point(2, 3), Point(5, 10), Point(2, 2)]; WriteLn('Unfiltered TPointArray: ' + TPAToStr(TPA)); TPAFilterPoints(TPA, [Point(2, 2)]); WriteLn('Filtered TPointArray: ' + TPAToStr(TPA)); end.
Output:
Unfiltered TPointArray: (0,0);(2,2);(2,3);(5,10);(2,2) Filtered TPointArray: (0,0);(2,3);(5,10)