TMtx::Rotate90 Method

Overload List

#SignatureDescription
1TMtx *Rotate90();Rotates 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.

Remarks:

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

Note
This operation differs from the TMtx::Transp operation.

Examples
#include "MtxVec.h"
#include "Units.MtxVec.h"

using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::MtxVec;

void Example()
{
    TMtx *A, *B;

    CreateIt(A, B);
    A->SetIt(2, 2, false, DewArray<double>{1, 3, 2, 4});
    B->Rotate90(A);
    FreeIt(A, B);
}
See Also: TMtx::Transp
Declared in Dew::Math::TMtx · Dew.Math/MtxVec.h · Cross-compiler

Overload 2: TMtx *Rotate90(TMtx *Mtx);

Rotate all Mtx matrix rows 90deg clockwise.

#NameTypeDescription
1MtxTMtx *
Remarks:

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

Declared in Dew::Math::TMtx · Dew.Math/MtxVec.h · Cross-compiler