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