Difference between revisions of "TPAEquals"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function TPAEquals(const TPA1, TPA2: TPointArray): Boolean; </source> ==Availability== SCAR Divi 3.37 > Current ==Descripti...")
 
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
 
==Availability==
 
==Availability==
 
SCAR Divi 3.37 > Current
 
SCAR Divi 3.37 > Current
 +
 +
===Notes===
 +
*Before 3.37.02 the function didn't work correctly.
  
 
==Description==
 
==Description==
Line 13: Line 16:
 
<source lang="scar">
 
<source lang="scar">
 
begin
 
begin
   WriteLn(TPAInTPA([Point(0, 0), Point(1, 2)], [Point(0, 0), Point(1, 2)]));
+
   WriteLn(TPAEquals([Point(0, 0), Point(1, 2)], [Point(0, 0), Point(1, 2)]));
   WriteLn(TPAInTPA([Point(0, 0), Point(1, 2)], [Point(0, 0)]));
+
   WriteLn(TPAEquals([Point(0, 0), Point(1, 2)], [Point(0, 0)]));
 
end.
 
end.
 
</source>
 
</source>

Latest revision as of 14:06, 26 November 2012

Definition

function TPAEquals(const TPA1, TPA2: TPointArray): Boolean;

Availability

SCAR Divi 3.37 > Current

Notes

  • Before 3.37.02 the function didn't work correctly.

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