Difference between revisions of "CombineTPA"

From SCAR Divi Manual
Jump to: navigation, search
Line 16: Line 16:
 
<source lang="scar">
 
<source lang="scar">
 
begin
 
begin
   WriteLn('TPointArray[' + TPAToStr(CombineTPA([Point(0, 0), Point(1, 2),
+
   WriteLn(TPAToStr(CombineTPA([Point(0, 0), Point(1, 2),
     Point(5, 6)], [Point(-5, 2), Point(1, 3)])) + ']');
+
     Point(5, 6)], [Point(-5, 2), Point(1, 3)])));
 
end.
 
end.
 
</source>
 
</source>
  
 
Output:
 
Output:
  TPointArray[(0,0);(1,2);(5,6);(-5,2);(1,3)]
+
  (0,0);(1,2);(5,6);(-5,2);(1,3)
  
 
==See Also==
 
==See Also==

Revision as of 11:05, 21 October 2011

Definition

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

Availability

SCAR Divi 3.20b > Current

Aliases

  • TPACombine (SCAR Divi 3.26 > Current)

Description

Appends the given TPointArray TPA2 to end of the given TPointArray TPA1 and returns it.

Example

begin
  WriteLn(TPAToStr(CombineTPA([Point(0, 0), Point(1, 2),
    Point(5, 6)], [Point(-5, 2), Point(1, 3)])));
end.

Output:

(0,0);(1,2);(5,6);(-5,2);(1,3)

See Also