TPAUnique

From SCAR Divi Manual
Revision as of 02:01, 27 June 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> procedure TPARemoveDupl(var TPA: TPointArray); </source> ==Availability== SCAR Divi 3.26 > Current ==Description== This functi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

procedure TPARemoveDupl(var TPA: TPointArray);

Availability

SCAR Divi 3.26 > Current

Description

This function removes all of the duplicate coordinates in a given TPointArray TPA.

Example

var
  TPA: TPointArray;

begin
  TPA := [Point(0, 0), Point(2, 2), Point(5, 10), Point(0, 0)];
  TPARemoveDupl(TPA);
  WriteLn('TPointArray: ' + TPAToStr(TPA));
end.

Output:

TPointArray: (0,0);(2,2);(5,10)

See Also