TPAContains

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

Definition

function TPAContains(const TPA: TPointArray; const Point: TPoint): Boolean;

Availability

SCAR Divi 3.26 > Current

Description

Returns true if the given TPointArray TPA contains the given TPoint Point.

Example

var
  TPA: TPointArray;

begin
  TPA := [Point(0, 0), Point(2, 2), Point(2, 3), Point(5, 10)];
  WriteLn(TPAContains(TPA, Point(1, 1)));
  WriteLn(TPAContains(TPA, Point(2, 2)));
end.

Output:

0
1

See Also