TMtxVecSample.CopyToArray Method

Overload List

#SignatureDescription
1function CopyToArray(var Dst: TDoubleArray): TMtxVecBase;Copy values to Dst array. The size of the array is set automatically.
└ indexed: function CopyToArray(var Dst: TDoubleArray; DstIndex: Integer; Index: Integer; Len: Integer): TMtxVecBase;
2function CopyToArray(var Dst: TSingleArray): TMtxVecBase;Copies the calling object data to an array of single precision floating point data.
└ indexed: function CopyToArray(var Dst: TSingleArray; DstIndex: Integer; Index: Integer; Len: Integer): TMtxVecBase;

Overload 1: function CopyToArray(var Dst: TDoubleArray): TMtxVecBase;

Copy values to Dst array. The size of the array is set automatically.

#NameTypeDescription
1DstTDoubleArray

Returns: TMtxVecBase

Remarks:

If the calling object is complex, the size of the Dst array will be equal to 2*TMtxVecBase.Length. If the calling object is not complex an exception will be raised.

Indexed: function CopyToArray(var Dst: TDoubleArray; DstIndex: Integer; Index: Integer; Len: Integer): TMtxVecBase;

Copy real or complex values from the calling object [Index]..[Index+len-1] to the Dst array at positions [DstIndex]...[DstIndex+Len-1].

#NameTypeDescription
1DstTDoubleArray
2DstIndexIntegerdestination start index
3IndexIntegerstart index
4LenIntegerelement count

Returns: TMtxVecBase

Remarks:

The size of the Dst array is not changed. If the calling object is complex, the Index and Len parameters define the number of complex elements.

Overload 2: function CopyToArray(var Dst: TSingleArray): TMtxVecBase;

Copies the calling object data to an array of single precision floating point data.

#NameTypeDescription
1DstTSingleArray

Returns: TMtxVecBase

Remarks:

Any values exceeding the range are clipped.

Indexed: function CopyToArray(var Dst: TSingleArray; DstIndex: Integer; Index: Integer; Len: Integer): TMtxVecBase;

Copy real or complex values from the calling object [Index]..[Index+len-1] to the Dst single precision floating point array at positions [DstIndex]...[DstIndex+Len-1].

#NameTypeDescription
1DstTSingleArray
2DstIndexIntegerdestination start index
3IndexIntegerstart index
4LenIntegerelement count

Returns: TMtxVecBase

Remarks:

The size of the Dst array is not changed. If the calling object is complex, the Index and Len parameters define the number of complex elements.