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

Copy object values.

Pascal
function Copy(const Src: TMtxVec; const dstFloatPrecision: TMtxFloatPrecision): TMtxVec; overload;

Copy each of Vec elements to the calling object. Size and Complex properties of the calling object are set implicitly to match Vec object.

Assign

var a,b,c: TVec; begin CreateIt(a,b,c); try a.SetIt(True,[1,2,3,4]); // a = [1,2,3,4] b.Copy(a, mvSingle); // convert to single precision 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!