Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Quaternions concatenation is the sum of angles ? (2)

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • This topic is locked This topic is locked
3 replies to this topic

#1 hbdevelop1   Members   

113
Like
0Likes
Like

Posted 28 November 2012 - 08:46 AM

Hello,

With the two quaterions q1=q2=(cos theta/2, sin theta/2, 0, 0)
Does the product q1q2 yield a third quaternion q3 equals (cos theta, sin theta, 0, 0) ?

This is the result I am expecting to have from my quaternion class, but I don't have it.
My expectation is based on the fact that the concatenation of q1 and q2 will yield a quaternion representing both rotations. That means, for me, the sum of the angles each quaternion represents if the rotations are around the same vector.

So, does the product q1q2 yield a third quaternion q3 equal (cos theta, sin theta, 0, 0) ?
Or is there anything wrong with my assumption ?

Thank you in advance

#2 Álvaro   Members   

20903
Like
0Likes
Like

Posted 28 November 2012 - 08:50 AM

The other thread is sufficient. Please, some mod close this one.

#3 J. Evola's Apprentice   Members   

307
Like
0Likes
Like

Posted 28 November 2012 - 08:50 AM

In mathematical world - yes.
In programming world - not necessarily, because of floating point rounding errors.
Read this: http://floating-point-gui.de/

#4 Brother Bob   Moderators   

10275
Like
0Likes
Like

Posted 28 November 2012 - 08:58 AM

The other thread is sufficient. Please, some mod close this one.

Indeed; closing.




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.