Rotate Image

Visualize rotating a matrix 90 degrees in place. Follow the transpose and row reversal steps with an interactive matrix animation.

Step 0 / 6
700 ms
Original
1
2
3
4
5
6
7
8
9
Working
1
2
3
4
5
6
7
8
9

Press Start to rotate the matrix 90° clockwise.