You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TMtx Class > TMtx Methods > Rotate90 Method > TMtx.Rotate90 Method ()
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TMtx.Rotate90 Method ()

Rotates matrix rows 90 degrees clockwise.

Syntax
C#
Visual Basic
public TMtx Rotate90();

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

 

 

Note This operation differs from the Transp operation. 

 

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