Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function FlipHor: TMtx; | Flips the matrix elements horizontally. |
| 2 | function FlipHor(const SrcMtx: TMtx): TMtx; | Flip all SrcMtx matrix elements horizontally and store the results in the calling matrix. |
Overload 1: function FlipHor: TMtx;
Flips the matrix elements horizontally.
Result: stored in self (calling object), returns self for chaining
Remarks:
Flip calling matrix elements horizontally - element [row, j] = element [row, Cols-j]. This operation is performed on all calling matrix rows.
Examples
var A,B: Matrix;
begin
A.SetIt(2,2,False,[1,2,
2,4]); // 2x2, not complex matrix
B.FlipHor(A);
// B becomes:
// [2,1]
// [4,2]
end;
See Also: Matrix.FlipVer
Overload 2: function FlipHor(const SrcMtx: TMtx): TMtx;
Flip all SrcMtx matrix elements horizontally and store the results in the calling matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | SrcMtx | TMtx |
Result: stored in self (calling object), returns self for chaining
Remarks:
The flip operation is performed on all SrcMtx matrix rows. The Matrix.Rows, Matrix.Cols and Matrix.Complex properties of callign matrix are adjusted automatically.