Difference between revisions of "TPAFilterPoints"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> procedure TPAFilterPoints(var TPA: TPointArray; const FilterTPA: TPointArray); </source> ==Availability== SCAR Divi 3.25 > Curr...")
(No difference)

Revision as of 08:15, 3 July 2011

Definition

procedure TPAFilterPoints(var TPA: TPointArray; const FilterTPA: TPointArray);

Availability

SCAR Divi 3.25 > 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)

See Also