MatrixInt.FlipHor Method

Overload List

#SignatureDescription
1function FlipHor: TMtxInt;Flips the matrix elements horizontally.
2function 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: TMtxInt;
begin
    CreateIt(A,B);
    try
        A.SetIt(2,2,[1,2,
            2,4]);  // 2x2, not complex matrix
        B.FlipHor(A);
        // B becomes:
        // [2,1]
        // [4,2]
    finally
        FreeIt(A,B);
    end;
end;
See Also: MatrixInt.FlipVer

Overload 2: function FlipHor(const SrcMtx: TMtxInt): TMtxInt;

Flip all SrcMtx matrix elements horizontally.

#NameTypeDescription
1SrcMtxTMtxInt

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 MatrixInt.Rows, MatrixInt.Cols and TMtxVecInt.IntPrecision properties of callign matrix are adjusted automatically.