/rotated-matrix

this is an basic example of one way to rotate square matrices using java script or ts

Primary LanguageJavaScript

This is a simple example of rotate one matrix 90 degree according to the clockwise

Technologies

This example only use typescript and javascript.

For test the result you can open the index.html.

Important !This is only for square matrices

Matrix

In this case we use the next matrix:
[
   [1, 2, 3, 4],
   [4, 5, 6, 7],
   [8, 9, 1, 5],
   [8, 5, 3, 1]
]