Difference between revisions of "TPAEquals"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> function TPAEquals(const TPA1, TPA2: TPointArray): Boolean; </source> ==Availability== SCAR Divi 3.37 > Current ==Descripti...") |
|||
Line 13: | Line 13: | ||
<source lang="scar"> | <source lang="scar"> | ||
begin | begin | ||
− | WriteLn( | + | WriteLn(TPAEquals([Point(0, 0), Point(1, 2)], [Point(0, 0), Point(1, 2)])); |
− | WriteLn( | + | WriteLn(TPAEquals([Point(0, 0), Point(1, 2)], [Point(0, 0)])); |
end. | end. | ||
</source> | </source> |
Revision as of 13:40, 21 November 2012
Contents
Definition
function TPAEquals(const TPA1, TPA2: TPointArray): Boolean;
Availability
SCAR Divi 3.37 > Current
Description
Returns true TPA1 contains the same points in the same order as TPA2.
Example
begin WriteLn(TPAEquals([Point(0, 0), Point(1, 2)], [Point(0, 0), Point(1, 2)])); WriteLn(TPAEquals([Point(0, 0), Point(1, 2)], [Point(0, 0)])); end.
Output:
1 0