| further reading | more topics » |
| programs | 3D theory | physics | maths | software | technology | about site | sitemap |
| index | algebra | geometry | calculus | discrete | statistics | standards |
| index | equations | multi-dim | vector | matrix | complex | clifford |
| index | complex | quaternions | octonion |
index |
transforms |
arithmetic |
functions |
orthogonal |
SLERP |
code |
alternative notations |
Given a quaternion representing a 3D rotation through an angle theta, how do we find the quaternion which represents a rotation, in the same direction, but through half that angle.
Thank you to minorlogic who has sent me the answer here.

The above diagram shows the situation using vectors. We have a unit vector rotated by theta, and a non-rotated unit vector. To get a vector rotated by theta/2 we just have to add the two vectors together as shown above.
The strange thing is that we can do the same using quaternions to represent the rotation. For example if we have a quaternion representing a rotation by theta:
q(x,y,z,w).
Then we can add a unit quaternion q(0,0,0,1) and normalise to get a quaternion representing the mid angle of the rotation.
qHalf = norm(q(x,y,z,w+1))
This seemed strange to me because usually we combine quaternions by multiplying them. So if we have a quaternion q1 representing a rotation by angle1 and we have a quaternion q2 representing a rotation by angle2, if we want to rotate by angle1 followed by angle2, this would be represented by q1*q2. Usually the addition operation is not meaningful when quaternions are used to represent rotations.
I think the reason that addition works in this special case is that all rotations are about the same axis.
For more information see message from minorlogic.
This is also related to the page about calculating the angle between two vectors.
|
metadata block |
|
| see also: |
|
| Correspondence about this page | |
|
Book Shop - Further reading. Where I can, I have put links to Amazon for books that are relevant to the subject, click on the appropriate country flag to get more details of the book or to buy it from them. |
|
|
Commercial Software Shop Where I can, I have put links to Amazon for commercial software, not directly related to the software project, but related to the subject being discussed, click on the appropriate country flag to get more details of the software or to buy it from them. |
|
Can you help? Please send me any improvements to here. I would appreciate ideas to make the pages more useful including error correction, ideas for new pages, improvements to wording. It helps if you quote the full URL of the page. |
|
|
Terminology and Notation Specific to this page here: |
|
|
program I am working on a project which uses these principles, if you would like to help me with this you are welcome to join in, here: |
|
This site may have errors. Don't use for critical systems.
Copyright (c) 1998-2010 Martin John Baker - All rights reserved - privacy policy.