Quaternions: Difference between revisions
imported>Jitse Niesen (expand on connection with rotation, general clean up) |
imported>Ragnar Schroder (→Applications: Adding content) |
||
Line 13: | Line 13: | ||
== Applications == | == Applications == | ||
In 3-dimensional space, any sequence of rotations around any number of different axes intersecting the origin can be represented by a single rotation - the set of all such rotations form a [[group (mathematics)|group]]. | |||
The set of unit quaternions under quaternion multiplication also form a group, which can be used to model the three-dimensional rotation group. | |||
A unit quaternion then represents a rotation, multiplying two quaternions represents performing two rotations in sequence, the resulting quaternion represents the equivalent single rotation. | |||
Given an ordinary 3-dimensional vector u<sub>1</sub> of unit length and an angle <math>\alpha _1</math>, the quaternion | |||
:<math>q_1 = \cos \left( \frac{\alpha_1}{2} \right) + u_1 \sin \left( \frac{\alpha_1}{2} \right)</math> | |||
then represents a [[rotation]] over an angle <math>\alpha_1</math> around the axis defined by the unit vector <math>u_1</math>. | |||
Given a similarly defined quaternion | |||
:<math>q_2 = \cos \left( \frac{\alpha_2}{2} \right) + u_2 \sin \left( \frac{\alpha_2}{2} \right)</math> | |||
one can compute their product quaternion | |||
:<math>q_1 q_2 = \cos \left( \frac{\alpha_1}{2} \right) \cos \left( \frac{\alpha_2}{2} \right) - u_1 \bullet u_2 + u_1 \times u_2 </math> | |||
This quaternion can be rewritten in the form | |||
:<math>\cos \left( \frac{\alpha_3}{2} \right) + u_3 \sin \left( \frac{\alpha_3}{2} \right)</math>. | |||
It represents a [[rotation]] over an angle <math>\alpha_3</math> around the axis defined by the unit vector <math>u_3</math>, with | |||
:<math>\cos \left( \frac{\alpha_3}{2} \right) = \cos \left( \frac{\alpha_1}{2} \right) \cos \left( \frac{\alpha_2}{2} \right) - u_1 \bullet u_2 </math>, and | |||
:<math>u_3 = u_1 \times u_2 </math> | |||
Note that each of the quaternion units (i,j,k) in this model represents a 180 degree rotation, and the quaternion -1 represents a full rotation. The quaternion representation thus keeps track of rotations, in addition to a [[fermion|fermionic phase factor]] of +-1. | |||
<!-- | |||
A [[rotation]] over an angle <math>\alpha</math> around the axis defined by the unit vector <math>u</math> is then represented by the unit quaternion | |||
:<math>\cos \left( \frac{\alpha}{2} \right) + u \sin \left( \frac{\alpha}{2} \right). </math> | :<math>\cos \left( \frac{\alpha}{2} \right) + u \sin \left( \frac{\alpha}{2} \right). </math> | ||
First, every 3-dimensional vector <math>(x,y,z)</math> is associated with the quaternion <math>ix + jy + kz</math>. | |||
In other words, the image of a vector under this rotation is the same as the product of the quaternion representing the rotation with the quaternion representing the vector. | In other words, the image of a vector under this rotation is the same as the product of the quaternion representing the rotation with the quaternion representing the vector. | ||
--> | |||
==See also== | ==See also== |
Revision as of 15:46, 28 November 2007
Quaternions are a non-commutative extension of the complex numbers. They were first described by Sir William Rowan Hamilton in 1843. He famously inscribed their defining equation on Broom Bridge in Dublin when walking with his wife on 16 October 1843. They have many possible applications, including in computer graphics, but have during their history proved comparatively unpopular, with vectors being preferred instead.
Definition & basic operations
The quaternions, , form a four-dimensional normed division algebra over the real numbers.
Properties
Applications
In 3-dimensional space, any sequence of rotations around any number of different axes intersecting the origin can be represented by a single rotation - the set of all such rotations form a group.
The set of unit quaternions under quaternion multiplication also form a group, which can be used to model the three-dimensional rotation group.
A unit quaternion then represents a rotation, multiplying two quaternions represents performing two rotations in sequence, the resulting quaternion represents the equivalent single rotation.
Given an ordinary 3-dimensional vector u1 of unit length and an angle , the quaternion
then represents a rotation over an angle around the axis defined by the unit vector .
Given a similarly defined quaternion
one can compute their product quaternion
This quaternion can be rewritten in the form
- .
It represents a rotation over an angle around the axis defined by the unit vector , with
- , and
Note that each of the quaternion units (i,j,k) in this model represents a 180 degree rotation, and the quaternion -1 represents a full rotation. The quaternion representation thus keeps track of rotations, in addition to a fermionic phase factor of +-1.
See also
Related topics
References
- Henry Baker. Quaternion references. Electronic document.
- Simon Altmann (2005). Rotations, Quaternions, and Double Groups. Dover Publications. ISBN 978-0486445182. (First edition appeared in 1977).
External links
- Quaternion at MathWorld