Q2EA
converts from Quaternions (Q) to Euler Angles (EA) based on D. M.
Henderson (1977).
Q2EA.Xiao
is the algorithm by J. Xiao (2013) for the Princeton Vision
Toolkit - included here to allow reproducible research.
Q2EA(Q, EulerOrder='zyx', tol = 10 * .Machine$double.eps, ichk = FALSE,
ignoreAllChk = FALSE)
Euler angles [psi, theta, phi] range from -90 to 90 degrees. Tait-Bryan angles [psi, theta, phi] range from 0 to 180 degrees. Angles about Euler vectors range from 0 to 180 degrees.
=>J. Xiao, 2013 Princeton Vision Toolkit. Available from: http://vision.princeton.edu/code.html http://vision.princeton.edu/pvt/GCBreader/quaternion.m
John Fuller, 14 Jul 2008 SpinCalc, Function to Convert between DCM, Euler angles, Quaternions, and Euler vectors. http://www.mathworks.com/matlabcentral/fileexchange/20696-function-to-convert-between-dcm--euler-angles--quaternions--and-euler-vectors
Paolo de Leva, 01 May 2013 SpinConv, Conversion from a rotation representation type to another. http://www.mathworks.com/matlabcentral/fileexchange/41562-spinconv
EA2Q
## Not run:
# Q <- c(-0.1677489, -0.7369231, -0.3682588, 0.5414703)
# Q2EA(Q,'xyx')
# ## End(Not run)
Run the code above in your browser using DataLab