quaternion multiplication order changes rotation direction?

Started by
12 comments, last by temp_ie_cant_thinkof_name 19 years, 11 months ago
Your mistake was the following:

You thought that (a * b) * c == a * (b * c) (vector dot product), but it''s not true.

It isn''t associative ! But it''s commutative.

And quaternion mult. is associative, but not commutative

Cross product is neither associative, neithaer commutative.

                |Commutative|Associative|Distibutive for addition----------------+-----------+-----------+------------------------dot product     |    Yes    |     No    |     Yes----------------+-----------+-----------+------------------------cross product   |     No    |     No    |     Yes----------------+-----------+-----------+------------------------quaternion mult.|     No    |    Yes    |     Yes----------------+-----------+-----------+------------------------matrix mult.    |     No    |    Yes    |     Yes
Advertisement
quote:
Now comparing:The scalar component is the same because v1 * (v2 x v3)=(v1 x v2) * v3


Do you have a proof or reference for this?

Thanks for showing that to me, btw, but I won''t be sure until i conduct a proof myself I''ll also post the work I had trouble with with the rotation quaternions, you could probably see where I made my mistake.
"I study differential and integral calculus in my spare time." -- Karl Marx
OK.

v1 * (v2 x v3)  =?=  (v1 x v2) * v3 v1(x1,y1,z1), v2(x2,...They are a scalar value, I will calculate both: v1 * (v2 x v3) = x1 * (y2 * z3 - z2 * y3) + y1 * (z2 * x3 - x2 * z3) + z1 * (x2 * y3 - y2 * x3) = x1 * y2 * z3 + y1 * z2 * x3 + z1 * x2 * y3 - z1 * y2 * x3 - y1 * x2 * z3 - x1 * z2 * y3 (v1 x v2) * v3=(y1 * z2 - z1 * y2) * x3 + (z1 * x2 - x1 * z2) * y3 + (x1 * y2 - y1 * x2) * z3 =y1 * z2 * x3 +z1 * x2 * y3 +x1 * y2 * z3 -x1 * z2 * y3 -y1 * x2 * z3 -z1 * y2 * x3


They are the same.


Thanks for proving that for me, szinkopa!

[edited by - temp_ie_cant_thinkof_name on May 26, 2004 2:49:07 PM]
"I study differential and integral calculus in my spare time." -- Karl Marx

This topic is closed to new replies.

Advertisement