Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxInt *Rotate90() const; | Rotates matrix Rows 90 degrees clockwise. |
| 2 | TMtxInt *Rotate90(TMtxInt *Mtx) const; | Rotate all Mtx matrix Rows 90deg clockwise. |
Overload 1: TMtxInt *Rotate90() const;
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 MatrixInt::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: MatrixInt::Transp
Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler
Overload 2: TMtxInt *Rotate90(TMtxInt *Mtx) const;
Rotate all Mtx matrix Rows 90deg clockwise.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Mtx | TMtxInt * |
Remarks:
Store the results in calling matrix. The MatrixInt::Rows, MatrixInt::Cols and TMtxVecInt::IntPrecision properties of the calling matrix are adjusted automatically.
Examples
#include "MtxExprInt.h"
using namespace Dew;
using namespace Dew::Math;
void Example()
{
MatrixInt A, B;
A = {{1, 3}, {2, 4}};
B.Rotate90(A);
}
Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler