Say I have a Rotation Matrix, which is used to rotate a 3D model.
Is it possible to set the yaw of the rotation matrix to zero before applying it to the model?
Regards, Adam.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
RotMatrix=R(yaw)*R(pitch)*R(roll)
to eliminate yaw factor, we can left-multiply this matrix on negative yaw matrix
RotMatrixNew=R(-yaw)*R(yaw)*R(pitch)*R(roll) = I**R*(pitch)*R(roll) = R(pitch)*R(roll)
If yaw angle isn’t known before, then it could be calculated as
yaw = ArcTan2(RotMatrix[2][1], RotMatrix[1][1])