Rotation - counter clockwise is +ve and clockwise is -ve Rx(90)*Rz(-90)*R(90) will switch in the way you wanted. Either you perform these rotation using quat or convert them into DCM and then perform the rotation and convert back to quat. I hope this will solve your issue. Best Regards, Akhil