Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function FlipHor: TMtxInt; | Flips the matrix elements horizontally. |
| 2 | function FlipHor(const SrcMtx: TMtxInt): TMtxInt; | Flip all SrcMtx matrix elements horizontally. |
Overload 1: function FlipHor: TMtxInt;
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: TMtx;
begin
CreateIt(A,B);
try
A.SetIt(2,2,False,[1,2,
2,4]); // 2x2, not complex matrix
B.FlipHor(A);
// B becomes:
// [2,1]
// [4,2]
finally
FreeIt(A,B);
end;
end;
Overload 2: function FlipHor(const SrcMtx: TMtxInt): TMtxInt;
Flip all SrcMtx matrix elements horizontally.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | SrcMtx | TMtxInt | source TMtxInt |
Result: stored in self (calling object), returns self for chaining
Remarks:
Store the results in the calling matrix. The flip operation is performed on all SrcMtx matrix Rows. The TMtxInt.Rows, TMtxInt.Cols and TMtxVecInt.IntPrecision properties of callign matrix are adjusted automatically.