Skip to main content
GameDev.net gamedev.net
🔒 Locked 🎮 Unity

Quaternions concatenation is the sum of angles ? (2)

Started by hbdevelop1 Nov 28, 2012 at 2:46 PM 2 replies 1.1k views
Original Post
hbdevelop1
hbdevelop1
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
alvaro
alvaro
The other thread is sufficient. Please, some mod close this one.
teccubus
teccubus
In mathematical world - yes.
In programming world - not necessarily, because of floating point rounding errors.
Read this: http://floating-point-gui.de/
Brother Bob
Brother Bob

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

Indeed; closing.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.