Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Angle between two quaternions?

This topic is 6303 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Sigh. I give up. I don''t understand this. The dot product between two unit quaternions should be cosV, where 2V is the (closest) angular separation between the quaternions (2V = 0-180 degrees, cosV = 0-1). But when I try the dot product between D3DXQuaternionRotationYawPitchRoll( q1, PI/2, 0, 0 ) and D3DXQuaternionRotationYawPitchRoll( q2, 0, 0, PI/2 ), I get 0.5, that is 60 degrees. I thought it should''ve been 45 degrees (half of 90)? I''ve tried some other unit quaternions as well, and it seems that the dot product (cosV) is not always between 0 and 1. What''s up? -Smedis

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!