TPAIntersect

From SCAR Divi Manual
Revision as of 09:36, 3 July 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function TPAIntersect(const TPA1, TPA2: TPointArray): TPointArray; </source> ==Availability== SCAR Divi 3.26 > Current ==Descr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function TPAIntersect(const TPA1, TPA2: TPointArray): TPointArray;

Availability

SCAR Divi 3.26 > Current

Description

Returns a TPointArray containing all points the given TPointArrays TPA1 and TPA2 have in common.

Example

var
  TPA: TPointArray;

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

Output:

TPointArray[(1,0);(2,2)]

See Also