You are here: Symbol Reference > MtxVec Namespace > Classes > TVec Class > public > Copy Method > TVec.Copy Method (TMtxVec, TMtxVec)
MtxVec VCL
ContentsIndex
PreviousUpNext
TVec.Copy Method (TMtxVec, TMtxVec)

Copies values from Vec1 and Vec2 (concatenate).

Pascal
function Copy(const Vec1: TMtxVec; const Vec2: TMtxVec): TVec; overload;

Copy each of Vec1 and Vec2 elements to the calling vector (concatenate). The Length and TMtxVec.ComplexComplexproperties of the calling vector are set implicitly to match Vec1 and Vec2 vector.

var a,b,c: TVec; begin CreateIt(a,b,c); try a.SetIt(True,[1,2,3,4]); b.Copy(a); c.Copy(a,b); //concatenate a and b and store in c // c = [1,2,3,4,1,2,3,4] finally FreeIt(a,b,c); end; end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!