|
⇤ ← Revision 1 as of 2025-09-25 16:18:25
Size: 1674
Comment: Initial commit
|
Size: 1192
Comment: Math
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 13: | Line 13: |
| A rotation matrix is defined for a specific number of dimensions. In two dimensions, a rotation matrix is: | A rotation matrix is defined for a specific number of dimensions. In ''R^2^'', a rotation matrix is: |
| Line 15: | Line 15: |
| R(θ) = \begin{bmatrix} cos(\theta) & -sin(\theta) \\ sin(\theta) & cos(\theta) \end{bmatrix} | {{attachment:rot2.svg}} |
| Line 21: | Line 21: |
| R(\frac{\pi}{2}) = \begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix} | {{attachment:rotex.svg}} |
| Line 23: | Line 23: |
| In three dimensions, the rotation matrix depends on the axis along which rotation is performed. | In ''R^3^'', there are separate rotation matrices for each dimension. |
| Line 25: | Line 25: |
| R_x(\gamma) = \begin{bmatrix} 1 & 0 & 0 \\ 0 & cos(\gamma) & -sin(\gamma) \\ 0 & sin(\gamma) & cos(\gamma) \end{bmatrix} R_y(\beta) = \begin{bmatrix} cos(\beta) & 0 & sin(\beta) \\ 0 & 1 & 0 \\ -sin(\beta) & 0 & cos(\beta) \end{bmatrix} R_z(\alpha) = \begin{bmatrix} cos(\alpha) & -sin(\alpha) & 0 \\ sin(\alpha) & cos(\alpha) & 0 \\ 0 & 0 & 1 \end{bmatrix} |
{{attachment:rot3.svg}} |
Rotation Matrix
A rotation matrix represents the linear transformation of rotation.
Contents
Description
A rotation matrix is defined for a specific number of dimensions. In R2, a rotation matrix is:
where θ is the angle of counter-clockwise rotation. Note that a negative θ represents clockwise rotation.
As an example, a counter-clockwise rotation of 90 degrees (or π/2 radians) is represented by:
In R3, there are separate rotation matrices for each dimension.
where α, β, and γ represent yaw, pitch, and roll in the Z, Y, and X dimensions respectively. A complete rotation matrix in three dimensions can then be calculated as R = Rz(α)Ry(β)Rx(γ).
Properties
A rotation matrix is always an orthogonal matrix. It follows that RT = R-1.
The determinant of a rotation matrix is either 1 or -1.
