You are here: Symbol Reference > MtxVec Namespace > Classes > TMtx Class > public > FlipHor Method > TMtx.FlipHor Method ()
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtx.FlipHor Method ()

Flips the matrix elements horizontally.

Pascal
function FlipHor: TMtx; overload;

Flip calling matrix elements horizontally - element [row, j] = element [row, Cols-j]. This operation is performed on all calling matrix rows.

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;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!