MatrixInt.FlipHor Method

Overload List

#SignatureDescription
1TMtxInt FlipHorFlips the matrix elements horizontally.
2TMtxInt FlipHor(TMtxInt SrcMtx)Flip all SrcMtx matrix elements horizontally.

Overload 1: TMtxInt FlipHor

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
TMtxInt A;
TMtxInt B;
MtxVec.CreateIt(out A, out B);
try
    {
        A.SetIt(2,2,[1,2,
        2,4]);  // 2x2, !complex matrix
        B.FlipHor(A);
        // B becomes:
        // [2,1]
        // [4,2]
    }
finally
    {
        MtxVec.FreeIt(ref A, ref B);
    }
See Also: MatrixInt.FlipVer

Overload 2: TMtxInt FlipHor(TMtxInt SrcMtx)

Flip all SrcMtx matrix elements horizontally.

#NameTypeDescription
1SrcMtxTMtxIntsource 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 Dew.Math.MatrixInt.Rows, Dew.Math.MatrixInt.Cols and Dew.Math.TMtxVecInt.IntPrecision properties of callign matrix are adjusted automatically.