xyz2R {nvctr} | R Documentation |
Create a rotation matrix from 3 angles about new axes in the xyz order.
Description
The rotation matrix R_AB
is created based on 3 angles x
, y
and z
about new axes (intrinsic) in the order x-y-z.
The angles (called Euler angles or Tait-Bryan angles) are defined by the following
procedure of successive rotations:
Given two arbitrary coordinate frames
A
andB
, consider a temporary frameT
that initially coincides withA
. In order to makeT
align withB
, we first rotateT
an anglex
about its x-axis (common axis for bothA
andT
).Secondly,
T
is rotated an angley
about the NEW y-axis ofT
.Finally, codeT is rotated an angle
z
about its NEWEST z-axis. The final orientation ofT
now coincides with the orientation ofB
.
The signs of the angles are given by the directions of the axes and the right hand rule.
Usage
xyz2R(x, y, z)
Arguments
x |
Angle of rotation about new x axis (rad) |
y |
Angle of rotation about new y axis (rad) |
z |
Angle of rotation about new z axis (rad) |
Value
3x3 rotation matrix (direction cosine matrix) such that the relation between a vector v decomposed in A and B is given by: v_A = R_AB * v_B
References
Kenneth Gade A Nonsingular Horizontal Position Representation. The Journal of Navigation, Volume 63, Issue 03, pp 395-417, July 2010.
See Also
Examples
xyz2R(rad(10), rad(20), rad(30))