Rotates the matrix by theta degrees.
The matrix that is to be rotated.
The angle of rotation (in radians).