matrix rotation
Refine matrix rotation