MathOverflow is a question and answer site for professional mathematicians. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hello, I have an orientation P1 in a 3D space, represented as a quaternion [w x y z]. Then P1 is rotated using another quaternion (q1) with the formula


Is there any formula in order to get q1 from P2 and P1?

Thank you.

share|cite|improve this question

closed as too localized by Igor Rivin, Anton Petrunin, Qiaochu Yuan, Deane Yang, Will Jagy Apr 15 '11 at 17:38

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

What is an "orientation"? – Igor Rivin Apr 15 '11 at 15:20

I am not sure what the OP means by "orinentation", but if the question is about the rotation of one (unit) vector into another, the axis of such a rotation is the cross product of the two vectors (assumed unit) and the angle is the arccos of the scalar product. You can then read off the quaternion. See:

share|cite|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.