Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function Rotate90: TMtxInt; | Rotates matrix Rows 90 degrees clockwise. |
| 2 | function Rotate90(const Mtx: TMtxInt): TMtxInt; | Rotate all Mtx matrix Rows 90deg clockwise. |
Overload 1: function Rotate90: TMtxInt;
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 MatrixInt.Transp operation.
Examples
var A,B: TMtxInt;
begin
CreateIt(A,B);
A.SetIt(2,2,[1,3,
2,4]);
B.Rotate90(A);
FreeIt(A,B);
end;
See Also: MatrixInt.Transp
Overload 2: function Rotate90(const Mtx: TMtxInt): TMtxInt;
Rotate all Mtx matrix Rows 90deg clockwise.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Mtx | TMtxInt |
Result: stored in self (calling object), returns self for chaining
Remarks:
Store the results in calling matrix. The MatrixInt.Rows, MatrixInt.Cols and TMtxVecInt.IntPrecision properties of the calling matrix are adjusted automatically.