Matrix.ScaleCols Method

Overload List

#SignatureDescription
1function ScaleCols(const Mtx: TMtx; const Src: TVec): TMtx;Scale all Mtx matrix columns with values from Src.
2function ScaleCols(const Src: TVec): TMtx;Scale all matrix columns with values from Src.

Overload 1: function ScaleCols(const Mtx: TMtx; const Src: TVec): TMtx;

Scale all Mtx matrix columns with values from Src.

#NameTypeDescription
1MtxTMtx
2SrcTVec

Result: stored in self (calling object), returns self for chaining

Remarks:

Src.Length must be equal to Mtx.Cols. The result is stored to the calling matrix.

Overload 2: function ScaleCols(const Src: TVec): TMtx;

Scale all matrix columns with values from Src.

#NameTypeDescription
1SrcTVec

Result: stored in self (calling object), returns self for chaining

Remarks:

Src.Length must be equal to Self.Cols.