HOME

TheInfoList



OR:

In
mathematics Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, the axis–angle representation parameterizes a
rotation Rotation or rotational/rotary motion is the circular movement of an object around a central line, known as an ''axis of rotation''. A plane figure can rotate in either a clockwise or counterclockwise sense around a perpendicular axis intersect ...
in a
three-dimensional In geometry, a three-dimensional space (3D space, 3-space or, rarely, tri-dimensional space) is a mathematical space in which three values (''coordinates'') are required to determine the position (geometry), position of a point (geometry), poi ...
Euclidean space Euclidean space is the fundamental space of geometry, intended to represent physical space. Originally, in Euclid's ''Elements'', it was the three-dimensional space of Euclidean geometry, but in modern mathematics there are ''Euclidean spaces ...
by two quantities: a
unit vector In mathematics, a unit vector in a normed vector space is a Vector (mathematics and physics), vector (often a vector (geometry), spatial vector) of Norm (mathematics), length 1. A unit vector is often denoted by a lowercase letter with a circumfle ...
indicating the direction of an
axis of rotation Rotation or rotational/rotary motion is the circular movement of an object around a central line, known as an ''axis of rotation''. A plane figure can rotate in either a clockwise or counterclockwise sense around a perpendicular axis intersect ...
, and an angle of rotation describing the magnitude and sense (e.g., clockwise) of the rotation about the axis. Only two numbers, not three, are needed to define the direction of a unit vector rooted at the origin because the magnitude of is constrained. For example, the elevation and azimuth angles of suffice to locate it in any particular Cartesian coordinate frame. By
Rodrigues' rotation formula In the theory of three-dimensional rotation, Rodrigues' rotation formula, named after Olinde Rodrigues, is an efficient algorithm for rotating a vector in space, given an axis and angle of rotation. By extension, this can be used to transfo ...
, the angle and axis determine a transformation that rotates three-dimensional vectors. The rotation occurs in the sense prescribed by the right-hand rule. The rotation axis is sometimes called the Euler axis. The axis–angle representation is predicated on Euler's rotation theorem, which dictates that any rotation or sequence of rotations of a rigid body in a three-dimensional space is equivalent to a pure rotation about a single fixed axis. It is one of many rotation formalisms in three dimensions.


Rotation vector

The axis–angle representation is equivalent to the more concise rotation vector, also called the Euler vector (not to be confused with a vector of Euler angles). In this case, both the rotation axis and the angle are represented by a vector codirectional with the rotation axis whose length is the rotation angle , \boldsymbol = \theta \mathbf \,. It is used for the exponential and
logarithm In mathematics, the logarithm of a number is the exponent by which another fixed value, the base, must be raised to produce that number. For example, the logarithm of to base is , because is to the rd power: . More generally, if , the ...
maps involving this representation. Many rotation vectors correspond to the same rotation. In particular, a rotation vector of length , for any integer , encodes exactly the same rotation as a rotation vector of length . Thus, there are at least a countable infinity of rotation vectors corresponding to any rotation. Furthermore, all rotations by are the same as no rotation at all, so, for a given integer , all rotation vectors of length , in all directions, constitute a two-parameter uncountable infinity of rotation vectors encoding the same rotation as the zero vector. These facts must be taken into account when inverting the exponential map, that is, when finding a rotation vector that corresponds to a given rotation matrix. The exponential map is ''onto'' but not ''one-to-one''.


Example

Say you are standing on the ground and you pick the direction of gravity to be the negative direction. Then if you turn to your left, you will rotate radians (or -90°) about the axis. Viewing the axis-angle representation as an
ordered pair In mathematics, an ordered pair, denoted (''a'', ''b''), is a pair of objects in which their order is significant. The ordered pair (''a'', ''b'') is different from the ordered pair (''b'', ''a''), unless ''a'' = ''b''. In contrast, the '' unord ...
, this would be ( \mathrm, \mathrm ) = \left( \begin e_x \\ e_y \\ e_z \end,\theta \right) = \left( \begin 0 \\ 0 \\ -1 \end,\frac\right). The above example can be represented as a rotation vector with a magnitude of pointing in the direction, \begin 0 \\ 0 \\ \frac \end.


Uses

The axis–angle representation is convenient when dealing with rigid-body dynamics. It is useful to both characterize
rotation Rotation or rotational/rotary motion is the circular movement of an object around a central line, known as an ''axis of rotation''. A plane figure can rotate in either a clockwise or counterclockwise sense around a perpendicular axis intersect ...
s, and also for converting between different representations of rigid body
motion In physics, motion is when an object changes its position with respect to a reference point in a given time. Motion is mathematically described in terms of displacement, distance, velocity, acceleration, speed, and frame of reference to an o ...
, such as homogeneous transformations and twists. When a
rigid body In physics, a rigid body, also known as a rigid object, is a solid body in which deformation is zero or negligible, when a deforming pressure or deforming force is applied on it. The distance between any two given points on a rigid body rema ...
rotates around a fixed axis, its axis–angle data are a constant rotation axis and the rotation angle continuously dependent on
time Time is the continuous progression of existence that occurs in an apparently irreversible process, irreversible succession from the past, through the present, and into the future. It is a component quantity of various measurements used to sequ ...
. Plugging the three eigenvalues 1 and and their associated three orthogonal axes in a Cartesian representation into
Mercer's theorem In mathematics, specifically functional analysis, Mercer's theorem is a representation of a symmetric positive-definite function on a square as a sum of a convergent sequence of product functions. This theorem, presented in , is one of the most ...
is a convenient construction of the Cartesian representation of the Rotation Matrix in three dimensions.


Rotating a vector

Rodrigues' rotation formula In the theory of three-dimensional rotation, Rodrigues' rotation formula, named after Olinde Rodrigues, is an efficient algorithm for rotating a vector in space, given an axis and angle of rotation. By extension, this can be used to transfo ...
, named after Olinde Rodrigues, is an efficient algorithm for rotating a Euclidean vector, given a rotation axis and an angle of rotation. In other words, Rodrigues' formula provides an algorithm to compute the exponential map from \mathfrak(3) to without computing the full matrix exponential. If is a vector in and is a
unit vector In mathematics, a unit vector in a normed vector space is a Vector (mathematics and physics), vector (often a vector (geometry), spatial vector) of Norm (mathematics), length 1. A unit vector is often denoted by a lowercase letter with a circumfle ...
rooted at the origin describing an axis of rotation about which is rotated by an angle , Rodrigues' rotation formula to obtain the rotated vector is \mathbf_\mathrm = \mathbf + (\sin\theta) (\mathbf \times \mathbf) + (1 - \cos\theta) (\mathbf \times (\mathbf \times \mathbf)) \,. For the rotation of a single vector it may be more efficient than converting and into a rotation matrix to rotate the vector.


Relationship to other representations

There are several ways to represent a rotation. It is useful to understand how different representations relate to one another, and how to convert between them. Here the unit vector is denoted instead of .


Exponential map from 𝔰𝔬(3) to SO(3)

The exponential map effects a transformation from the axis-angle representation of rotations to rotation matrices, \exp\colon \mathfrak(3) \to \mathrm(3) \,. Essentially, by using a Taylor expansion one derives a closed-form relation between these two representations. Given a unit vector \boldsymbol\omega \in \mathfrak(3) = \R^3 representing the unit rotation axis, and an angle, , an equivalent rotation matrix is given as follows, where is the cross product matrix of , that is, for all vectors , R = \exp(\theta \mathbf) = \sum_^\infty\frac = I + \theta \mathbf + \frac(\theta \mathbf)^2 + \frac(\theta \mathbf)^3 + \cdots Because is skew-symmetric, and the sum of the squares of its above-diagonal entries is 1, the
characteristic polynomial In linear algebra, the characteristic polynomial of a square matrix is a polynomial which is invariant under matrix similarity and has the eigenvalues as roots. It has the determinant and the trace of the matrix among its coefficients. The ...
of is . Since, by the Cayley–Hamilton theorem, = 0, this implies that \mathbf^3 = -\mathbf \,. As a result, , , , . This cyclic pattern continues indefinitely, and so all higher powers of can be expressed in terms of and . Thus, from the above equation, it follows that R = I + \left(\theta - \frac + \frac - \cdots\right) \mathbf + \left(\frac - \frac + \frac - \cdots\right) \mathbf^2 \,, that is, R = I + (\sin\theta) \mathbf + (1-\cos\theta) \mathbf^2\, , by the Taylor series formula for trigonometric functions. This is a Lie-algebraic derivation, in contrast to the geometric one in the article
Rodrigues' rotation formula In the theory of three-dimensional rotation, Rodrigues' rotation formula, named after Olinde Rodrigues, is an efficient algorithm for rotating a vector in space, given an axis and angle of rotation. By extension, this can be used to transfo ...
.This holds for the triplet representation of the rotation group, i.e., spin 1. For higher dimensional representations/spins, see Due to the existence of the above-mentioned exponential map, the unit vector representing the rotation axis, and the angle are sometimes called the ''exponential coordinates'' of the rotation matrix .


Log map from SO(3) to 𝔰𝔬(3)

Let continue to denote the 3 × 3 matrix that effects the cross product with the rotation axis : for all vectors in what follows. To retrieve the axis–angle representation of a
rotation matrix In linear algebra, a rotation matrix is a transformation matrix that is used to perform a rotation (mathematics), rotation in Euclidean space. For example, using the convention below, the matrix :R = \begin \cos \theta & -\sin \theta \\ \sin \t ...
, calculate the angle of rotation from the trace of the rotation matrix: \theta = \arccos\left( \frac \right) and then use that to find the normalized axis, \boldsymbol = \frac \begin R_-R_ \\ R_-R_ \\ R_-R_ \end ~, where R_ is the component of the rotation matrix, R, in the i-th row and j-th column. The axis-angle representation is not unique since a rotation of -\theta about -\boldsymbol is the same as a rotation of \theta about \boldsymbol . Of course, adding any integer multiple of 2π to \theta will also result in the identical rotation; a better method is to constrain \theta to the interval , 2π) or (-π, π The above calculation of axis vector \omega does not work if is symmetric. Because, this is possible only when \theta = π, so sin(\theta) = 0, causing a division by 0 in the formula. However, the ''limit'' of the formula for \omega, as \theta → π, gives the correct value for \omega. For the general case the \omega may also be found using null space of , see rotation matrix#Determining the axis. The matrix logarithm of the rotation matrix is \log R = \begin 0 & \text \theta = 0 \\ \dfrac \left(R - R^\mathsf\right) & \text \theta \ne 0 \text \theta \in (-\pi, \pi) \end An exception occurs when has
eigenvalue In linear algebra, an eigenvector ( ) or characteristic vector is a vector that has its direction unchanged (or reversed) by a given linear transformation. More precisely, an eigenvector \mathbf v of a linear transformation T is scaled by a ...
s equal to . In this case, the log is not unique. However, even in the case where the
Frobenius norm In the field of mathematics, norms are defined for elements within a vector space. Specifically, when the vector space comprises matrices, such norms are referred to as matrix norms. Matrix norms differ from vector norms in that they must also ...
of the log is \, \log(R) \, _\mathrm = \sqrt , \theta , \,. Given rotation matrices and , d_g(A,B) := \left\, \log\left(A^\mathsf B\right)\right\, _\mathrm is the geodesic distance on the 3D manifold of rotation matrices. For small rotations, the above computation of may be numerically imprecise as the derivative of arccos goes to infinity as . In that case, the off-axis terms will actually provide better information about since, for small angles, . (This is because these are the first two terms of the Taylor series for .) This formulation also has numerical problems at , where the off-axis terms do not give information about the rotation axis (which is still defined up to a sign ambiguity). In that case, we must reconsider the above formula. R = I + \mathbf \sin\theta + \mathbf^2 (1-\cos\theta) At , we have R = I + 2 \mathbf^2 = I + 2(\boldsymbol \otimes \boldsymbol - I) = 2 \boldsymbol \otimes \boldsymbol - I and so let B := \boldsymbol \otimes \boldsymbol = \frac(R+I) \,, so the diagonal terms of are the squares of the elements of and the signs (up to sign ambiguity) can be determined from the signs of the off-axis terms of .


Unit quaternions

The following expression transforms axis–angle coordinates to versors (unit
quaternion In mathematics, the quaternion number system extends the complex numbers. Quaternions were first described by the Irish mathematician William Rowan Hamilton in 1843 and applied to mechanics in three-dimensional space. The algebra of quater ...
s): \mathbf q = \left(\cos\tfrac, \boldsymbol \sin\tfrac\right) Given a versor represented with its scalar and vector , the axis–angle coordinates can be extracted using the following: \begin \theta &= 2\arccos r \\ px\boldsymbol &= \begin \dfrac, & \text \theta \neq 0 \\ 0, & \text. \end \end A more numerically stable expression of the rotation angle uses the atan2 function: \theta = 2 \operatorname(, \mathbf, ,r)\,, where is the Euclidean norm of the 3-vector .


See also

* Homogeneous coordinates * Pseudovector * Rotations without a matrix * Screw theory, a representation of rigid-body motions and velocities using the concepts of twists, screws, and wrenches


References

{{DEFAULTSORT:Axis Angle Representation Rotation in three dimensions Angle