TMtxByte::Rotate90 Method

Overload List

#SignatureDescription
1TMtxInt *Rotate90();Rotates matrix Rows 90 degrees clockwise.
2TMtxInt *Rotate90(TMtxInt *Mtx);Rotate all Mtx matrix Rows 90deg clockwise.

Overload 1: TMtxInt *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 TMtxByte::Transp operation.

Examples
#include "MtxVecInt.h"
#include "Units.MtxVecInt.h"

using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::MtxVecInt;

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

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

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

Rotate all Mtx matrix Rows 90deg clockwise.

#NameTypeDescription
1MtxTMtxInt *
Remarks:

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

Declared in Dew::Math::TMtxInt · Dew.Math/MtxVecInt.h · Cross-compiler