You are here: Symbol Reference > MtxExprInt Namespace > Classes > MatrixInt Record > public > Rotate90 Method > MatrixInt.Rotate90 Method ()
MtxVec VCL
ContentsIndex
PreviousUpNext
MatrixInt.Rotate90 Method ()

Rotates matrix Rows 90 degrees clockwise.

Pascal
function Rotate90: TMtxInt; overload;

Rotates all calling matrix Rows 90 degrees clockwise in-place (check the scheme bellow). 

 

 

This operation differs from the Transp operation. 

 

var A,B: TMtxInt; begin CreateIt(A,B); A.SetIt(2,2,[1,3, 2,4]); B.Rotate90(A); FreeIt(A,B); end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!