TMtxInt.FlipVer Method

Overload List

#SignatureDescription
1function FlipVer: TMtxInt;Flips the matrix elements vertically
2function FlipVer(const SrcMtx: TMtxInt): TMtxInt;Flip all SrcMtx matrix elements vertically.

Overload 1: function FlipVer: TMtxInt;

Flips the matrix elements vertically

Result: stored in self (calling object), returns self for chaining

Remarks:

Flip calling matrix elements vertically - element [j, col] = element [Rows-j, col]. This operation is performed on all calling matrix columns.

Examples
var  A,B: TMtxInt;
begin
    CreateIt(A,B);
    try
        A.SetIt(2,2,[1,2,
            2,4]);  // 2x2, integer matrix
        B.FlipVert(A);
        // B becomes:
        // [2,4]
        // [1,2]
    finally
        FreeIt(A,B);
    end;
end;
See Also: TMtxInt.FlipHor

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

Flip all SrcMtx matrix elements vertically.

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