get the rotation matrix