Rotation Matrix - in Three Dimensions - Conversion From and To Axis-angle - Rotation Matrix From Axis and Angle

Rotation Matrix From Axis and Angle

For some applications, it is helpful to be able to make a rotation with a given axis. Given a unit vector u = (ux, uy, uz), where ux2 + uy2 + uz2 = 1, the matrix for a rotation by an angle of θ about an axis in the direction of u is

R = \begin{bmatrix} \cos \theta +u_x^2 \left(1-\cos \theta\right) & u_x u_y \left(1-\cos \theta\right) - u_z \sin \theta & u_x u_z \left(1-\cos \theta\right) + u_y \sin \theta \\ u_y u_x \left(1-\cos \theta\right) + u_z \sin \theta & \cos \theta + u_y^2\left(1-\cos \theta\right) & u_y u_z \left(1-\cos \theta\right) - u_x \sin \theta \\ u_z u_x \left(1-\cos \theta\right) - u_y \sin \theta & u_z u_y \left(1-\cos \theta\right) + u_x \sin \theta & \cos \theta + u_z^2\left(1-\cos \theta\right)
\end{bmatrix}.
{{ }}

This can be written more concisely as

where is the cross product matrix of u, ⊗ is the tensor product and I is the Identity matrix. This is a matrix form of Rodrigues' rotation formula, with

 \mathbf{u}\otimes\mathbf{u} = \begin{bmatrix}
u_x^2 & u_x u_y & u_x u_z \\
u_x u_y & u_y^2 & u_y u_z \\
u_x u_z & u_y u_z & u_z^2
\end{bmatrix},\qquad _{\times} = \begin{bmatrix}
0 & -u_z & u_y \\
u_z & 0 & -u_x \\
-u_y & u_x & 0
\end{bmatrix}.

If the 3D space is right-handed, this rotation will be counterclockwise for an observer placed so that the axis u goes in his direction (Right-hand rule).

Read more about this topic:  Rotation Matrix, In Three Dimensions, Conversion From and To Axis-angle

Famous quotes containing the words rotation, matrix, axis and/or angle:

    The lazy manage to keep up with the earth’s rotation just as well as the industrious.
    Mason Cooley (b. 1927)

    In all cultures, the family imprints its members with selfhood. Human experience of identity has two elements; a sense of belonging and a sense of being separate. The laboratory in which these ingredients are mixed and dispensed is the family, the matrix of identity.
    Salvador Minuchin (20th century)

    I make this direct statement to the American people that there is far less chance of the United States getting into war, if we do all we can now to support the nations defending themselves against attack by the Axis than if we acquiesce in their defeat, submit tamely to an Axis victory, and wait our turn to be the object of attack in another war later on.
    Franklin D. Roosevelt (1882–1945)

    So much symmetry!
    Like the pale angle of time
    And eternity.
    The great shape labored and fell.
    N. Scott Momaday (b. 1934)