Conversion between quaternions and Euler angles: Difference between revisions

Content deleted Content added
No edit summary
Line 1:
Spatial rotations in three dimensions can be parametrized using both [[Euler angles]] and [[Quaternions and spatial rotation|unit quaternions]]. This article explains how to convert between the two representations. Actually this simple use of "quaternions" was first presented by Euler some seventy years earlier than Hamilton to solve the problem of "magic squares." For this reason the dynamics community commonly refers to quaternions in this application as "Euler Parametersparameters".
 
A unit quaternion can be described as:
Line 8:
:<math>\mathbf{q}_2 = \sin(\alpha/2)\cos(\beta_y)</math>
:<math>\mathbf{q}_3 = \sin(\alpha/2)\cos(\beta_z)</math>
where <math>\alpha</math> is a simple rotation angle and <math>\beta_x</math>, <math>\beta_y</math>, <math>\beta_z, </math> are the "[[direction cosinescosine]]s" locating the axis of rotation (Euler's Theorem).
 
Similarly for Euler angles, we use (in terms of [[flight dynamics]]):
* Roll - <math>\phi</math>: rotation about the X-axis
* Pitch - <math>\theta</math>: rotation about the Y-axis
* Yaw - <math>\psi</math>: rotation about the Z-axis
where the X-axis points forward, Y-axis to the right and Z-axis downward and in the example to follow the rotation occurs in the order Yawyaw, Pitchpitch, Rollroll (about body -fixed axes).
 
== Rotation matrices ==