Difference between revisions of "CombineTPA"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "#REDIRECT TPACombine Category:Functions Category:TPA Functions Category:Array Functions")
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
#REDIRECT TPACombine
+
==Definition==
 +
<source lang="scar" lines="false">
 +
function CombineTPA(const TPA1, TPA2: TPointArray): TPointArray;
 +
</source>
 +
 
 +
==Availability==
 +
SCAR Divi 3.20b > Current
 +
 
 +
===Aliases===
 +
*TPACombine (SCAR Divi 3.26 > 3.35)
 +
 
 +
==Description==
 +
Appends the given [[TPointArray]] '''TPA2''' to end of the given TPointArray '''TPA1''' and returns it.
 +
 
 +
==Example==
 +
<source lang="scar">
 +
begin
 +
  WriteLn(TPAToStr(CombineTPA([Point(0, 0), Point(1, 2),
 +
    Point(5, 6)], [Point(-5, 2), Point(1, 3)])));
 +
end.
 +
</source>
 +
 
 +
Output:
 +
(0,0);(1,2);(5,6);(-5,2);(1,3)
 +
 
 +
==See Also==
 +
*[[MergeATPA]]
  
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:TPA Functions]]
 
[[Category:TPA Functions]]
 
[[Category:Array Functions]]
 
[[Category:Array Functions]]

Latest revision as of 11:52, 14 July 2012

Definition

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

Availability

SCAR Divi 3.20b > Current

Aliases

  • TPACombine (SCAR Divi 3.26 > 3.35)

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