rotate and matrix4d class