Matrix.ScaleRows Method

Overload List

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

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

Scale all Mtx matrix rows 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.Rows. The result is stored to the calling matrix.

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

Scale all matrix rows with values from Src.

#NameTypeDescription
1SrcTVec

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

Remarks:

Src.Length must be equal to Self.Rows.