Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
3D モデルを回転させるために使用される Rotation Matrix があるとします。モデルに適用する前に、回転行列のヨーをゼロに設定することは可能ですか?
よろしく、アダム。
RotMatrix = R (ヨー) *R (ピッチ) *R (ロール)
ヨー係数を除去するために、この行列を負のヨー行列に左掛けすることができます
RotMatrixNew = R (-yaw)*R (ヨー) *R (ピッチ) *R (ロール) = I ** R *(ピッチ) *R (ロール) = R (ピッチ) *R (ロール)
ヨー角が以前に知られていない場合は、次のように計算できます。
yaw = ArcTan2(RotMatrix[2][1], RotMatrix[1][1])