Difference between revisions of "TPAContains"

From SCAR Divi Manual
Jump to: navigation, search
(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...")
 
(No difference)

Latest revision as of 08:24, 3 July 2011

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