Summary
Flips the matrix elements horizontally.
Class
TMtx
Declaration
Function FlipHor(SrcMtx: TMtx): TMtx;
Description
Flip all SrcMtx matrix elements horizontally and store the results in the calling matrix. The flip operation is performed on all SrcMtx matrix rows. The
Rows,
Cols and
Complex properties of callign matrix are adjusted automatically.
Declaration
Function FlipHor: TMtx;
Description
Flip calling matrix elements horizontally - element [row, j] = element [row, Cols-j]. This operation is performed on all calling matrix rows.
Example 1
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;
| Copyright 2008 Dew Research |
http://www.dewresearch.com