You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5 lines
260 B
5 lines
260 B
10 years ago
|
function quatOut = QuatMult(quatA,quatB)
|
||
|
% Calculate the following quaternion product quatA * quatB using the
|
||
|
% standard identity
|
||
|
|
||
|
quatOut = [quatA(1)*quatB(1)-quatA(2:4)'*quatB(2:4); quatA(1)*quatB(2:4) + quatB(1)*quatA(2:4) + cross(quatA(2:4),quatB(2:4))];
|