Saturday, July 30, 2005

Quaternion Multiplication

Q1 = [s1,(x1,y1,z1)]
Q2 = [s2,(x2,y2,z2)]

Q = Q1 * Q2 = [s,(x,y,z)]

s = s1*s2 - x1*x2 - y1*y2 - z1*z2;

x = s1*x2 + s2*x1 + y1*z2 - y2*z1

y = s1*y2 + s2*y1 + z1*x2 - z2*x1

z = s1*z2 + s2*z1 + x1*y2 - x2*y1

0 Comments:

Post a Comment

<< Home