|
Euler angles describe the relative orientation of two three-dimensional reference frames by means of three successive one axis rotations. They provide a minimal, three parameter description of orientation and are therefore intuitive and economical, but the same economy also produces coordinate singularities and convention ambiguities.
The phrase “Euler angles” is used broadly in engineering for both proper Euler sequences, in which the first and third axes are the same, and Tait–Bryan sequences, in which all three axes are different. Examples are the - - proper Euler sequence and the - - yaw–pitch–roll Tait–Bryan sequence.
A formula involving Euler angles is incomplete unless it states at least:
- the handedness of the coordinate frames;
- whether the operation is an active vector rotation or a passive coordinate transformation;
- whether the three rotations are intrinsic (moving axis) or extrinsic (fixed axis);
- the axis sequence;
- the direction of the frame to frame coordinate map; and
- the meanings and ordering of the three angle symbols.
This entry establishes the convention used by the PhysicsLibrary Euler angle series.
Unless an article explicitly states otherwise, the PhysicsLibrary Euler angle series uses the following convention.
This convention is deliberately explicit because many apparently contradictory Euler angle formulas differ only by a transpose, a reversed sequence description, or a relabeling of the three angles.
Let frame be obtained from frame by a positive right-handed rotation of the axes through angle about one coordinate axis. The passive coordinate transformation from to is written
, where denotes the axis, respectively.
The three elementary transformations are
and
These matrices are orthogonal,
and have determinant .
They are the transposes of the matrices commonly written for an active rotation of a vector by the same positive angle. The sign difference is a consequence of changing the basis rather than moving the physical vector.
Suppose frame is obtained by rotating the axes of frame through about
. A physical vector with coordinates
has coordinates in frame 
The vector itself has not rotated. The new coordinate axes have rotated, so the coordinates change with the opposite sign from an active vector rotation.
Consider an original frame and a final frame . An intrinsic - - Euler sequence is constructed as follows:
Each transformation maps coordinates into the newly rotated frame,
and
Substitution therefore gives the universal PhysicsLibrary rule
for an intrinsic - - sequence.
The rightmost matrix acts first on the coordinate column. This is not a reversal of the physical sequence: it is the ordinary rule for composition of linear transformations.
A valid three angle sequence cannot use the same axis for two consecutive rotations, because two consecutive rotations about the same current axis would combine into a single rotation. This leaves twelve standard sequences.
The six Tait–Bryan sequences use three distinct axes.
The six proper Euler sequences repeat the first axis as the third axis.
The expanded matrices are developed in the individual PhysicsLibrary sequence entries: Euler 123 sequence, Euler 132 sequence, Euler 121 sequence, Euler 131 sequence, Euler 213 sequence, Euler 231 sequence, Euler 212 sequence, Euler 232 sequence, Euler 312 sequence, Euler 321 sequence, Euler 313 sequence, and Euler 323 sequence.
An intrinsic rotation sequence uses moving axes. An extrinsic sequence uses axes fixed in the original frame. These are not two different classes of physical orientation; an intrinsic sequence can be re described as an extrinsic sequence if the axis order and interpretation are reversed appropriately.
For example, an intrinsic - - sequence may be described geometrically as:
yaw about the original  -axis  pitch about the new  -axis  roll about the new  -axis 
The same final orientation can be represented using a corresponding fixed axis description, but PhysicsLibrary names and derives Euler sequences intrinsically. Whenever formulas from another source are imported, the source's intrinsic/extrinsic convention must be checked before comparing matrix products.
The legacy PhysicsLibrary Euler entries generally used , , and as the first, second, and third rotation parameters independent of which physical axes were used. That is internally workable, but it conflicts with the widespread aerospace convention
In a - - sequence, the first rotation is yaw and the third is roll. Consequently, the legacy notation can make a correct matrix appear to have the yaw and roll symbols interchanged.
PhysicsLibrary therefore uses
for generic first/second/third sequence angles and reserves
for contexts in which the physical meanings roll/pitch/yaw are intended.
For the intrinsic - - sequence,
where is yaw, is pitch, and is roll. The passive coordinate transformation from the reference frame to the final frame is therefore
Writing
gives
The dedicated Euler 321 sequence entry derives this matrix step by step and discusses inverse extraction and the singularity at
.
The three numbers in an Euler angle triple are parameters of a nonlinear composition of rotations. In general,
does not represent the composition of the corresponding orientations. Finite rotations in three dimensions do not commute, and an Euler angle triple should not be transformed or added as though it were an ordinary geometric vector.
This distinction becomes especially important in attitude estimation and control, where small attitude errors may sometimes be approximated by a threecomponent vector even though the finite Euler angles themselves are not a vector.
Euler angles provide only a local coordinate chart on three-dimensional orientation. No three parameter Euler chart is globally nonsingular.
For a Tait–Bryan sequence the singularity occurs when the middle rotation places the first and third rotation axes in alignment. In the - - sequence this occurs at
This loss of one independent rotational degree of freedom in the coordinates is commonly called gimbal lock. The physical orientation remains perfectly well defined; only the chosen Euler angle coordinates become singular.
Euler triples are also not globally unique. Angle periodicity and the structure of the sequence allow more than one triple to represent the same final orientation. Software interfaces should therefore state the chosen principal ranges for inverse Euler angle extraction.
A direction cosine matrix represents the complete orientation without a coordinate singularity, although it uses nine matrix elements subject to six orthonormality constraints.
Under the convention of this article,
The inverse transformation is
with
A source that writes the transpose of a PhysicsLibrary Euler matrix may therefore be describing the same physical orientation but mapping coordinates in the opposite direction.
The PhysicsLibrary quaternion series uses Hamilton multiplication and writes for the orientation of frame relative to frame , with the coordinate map
If
denotes the corresponding matrix that maps coordinates to coordinates, then
The passive Euler matrix used in this article maps in the opposite coordinate direction:
Thus the Euler and quaternion conventions describe the same relative orientation without changing Hamilton's quaternion multiplication law. The frame direction is carried explicitly by the notation rather than hidden in a sign convention.
For the - - yaw–pitch–roll orientation,
under the PhysicsLibrary/Hamilton quaternion convention, while
See Quaternions for Physics and Engineering: Orientation, Notation, and Conventions and quaternions and Euler angleshttps://physicslibrary.org/encyclopedia/QuaternionsAndEulerAngles.html for the quaternion side of the relationship.
Any engineering paper, simulation, software interface, or PhysicsLibrary entry that uses Euler angles should make enough information available to answer the following questions:
- Are the coordinate frames right-handed?
- What is the positive sense of rotation?
- Is the operation active or passive?
- What coordinate direction does the matrix map?
- Is the sequence intrinsic or extrinsic?
- What is the axis order?
- Which angle is applied first?
- What do the angle symbols mean physically?
- What are the principal angle ranges used for inverse extraction?
If these questions are answered, most apparent Euler angle disagreements reduce to a transpose, an inverse, an order reversal, or an angle relabeling.
- Calling a matrix simply “the rotation matrix.” Without a map such as
, the direction of the coordinate transformation is ambiguous.
- Mixing active and passive matrices. For the same positive geometric rotation, the active vector rotation matrix and passive coordinate transformation matrix are transposes of one another.
- Calling a sequence
- - without saying intrinsic or extrinsic. The axis labels alone do not completely specify the verbal operation.
- Assuming
always mean first, second, and third rotations. In aerospace work they normally mean roll, pitch, and yaw, respectively.
- Reading the matrix product from left to right as the order of action on a column vector. The rightmost factor acts first.
- Treating Euler angles as an ordinary three vector. Finite rotation composition is nonlinear and noncommutative.
- Ignoring the middle angle singularity. Inverse formulas fail or become nonunique at gimbal lock.
- Copying quaternion Euler formulas from another convention. Quaternion multiplication, frame direction, active/passive interpretation, and Euler sequence must be converted as one consistent set.
The present entry establishes the convention contract. The individual sequence entries develop the twelve matrices in detail. Separate entries treat:
- each of the twelve intrinsic Euler sequences;
- conversion from a direction cosine matrix to Euler angles;
- Euler angle rates and angular velocity;
- quaternion Euler conversion; and
- examples and exercises.
The - - yaw–pitch–roll sequence is treated first because of its importance in aerospace, navigation, robotics, and rigid-body dynamics.
The matrix convention in this article agrees with the passive direction cosine matrix construction used in modern reference frame mechanics treatments, where the rows contain the new basis vectors resolved in the old basis. Henderson's NASA memorandum is a useful engineering reference because it tabulates all twelve three-angle transformations and emphasizes the importance of transformation direction. Diebel provides a broad comparison of Euler angles, rotation matrices, quaternions, and rotation vectors.
- 1
- D. M. Henderson, Euler Angles, Quaternions, and Transformation Matrices—Working Relationships, JSC-12960, NASA Johnson Space Center, July 1977. NASA Technical Reports Server https://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/19770024290.pdf
- 2
- J. K. Moore, Learn Multibody Dynamics, chapter “Orientation of Reference Frames,” 2026 edition, CC BY 4.0. Orientation of Reference Frames https://moorepants.github.io/learn-multibody-dynamics/orientation.html
- 3
- J. Diebel, “Representing Attitude: Euler Angles, Unit Quaternions, and Rotation Vectors,” Stanford University, 2006. online PDF https://www.astro.rug.nl/software/kapteyn-beta/_downloads/attitude.pdf
Unless otherwise noted, this PhysicsLibrary entry is intended for release under the Creative Commons Attribution–ShareAlike 4.0 International license.
|