Rotate a 2D square by x degrees

710 Views Asked by At

Say I have a square represented by the following matrix:

0   0
10  0
10  10
0   10
0   0

Now, what would I multiply this matrix by to rotate the square (or what ever shape it is) around its center point x degrees?