TMtx.Rotate90 Method

Overload List

#SignatureDescription
1TMtx Rotate90Rotates matrix rows 90 degrees clockwise.
2TMtx Rotate90(TMtx Mtx)Rotate all Mtx matrix rows 90deg clockwise.

Overload 1: TMtx Rotate90

Rotates matrix rows 90 degrees clockwise.

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

Remarks:

Rotates all calling matrix rows 90 degrees clockwise in-place (check the scheme bellow).

Note
This operation differs from the Dew.Math.TMtx.Transp operation.

Examples
TMtx A;
TMtx B;
MtxVec.CreateIt(out A, out B);
A.SetIt(2,2,false,[1,3,
2,4]);
B.Rotate90(A);
MtxVec.FreeIt(ref A, ref B);
See Also: TMtx.Transp

Overload 2: TMtx Rotate90(TMtx Mtx)

Rotate all Mtx matrix rows 90deg clockwise.

#NameTypeDescription
1MtxTMtxsource TMtx

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

Remarks:

Store the results in calling matrix. The Dew.Math.TMtx.Rows, Dew.Math.TMtx.Cols and Dew.Math.TMtxVec.Complex properties of the calling matrix are adjusted automatically.