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

Rotates matrix rows 90 degrees clockwise.

Pascal
function Rotate90: TMtx; 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: Matrix; begin A.SetIt(2,2,False,[1,3, 2,4]); B.Rotate90(A); end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!