powered by
Given three angles return rotation matrix.
euler_passive(phi, theta, psi)
angle with x-axis
angle with y-axis
angle with z-axis
3 by 3 rotation matrix.
Code borrowed from cpp code in package cda. used in rgl.ellipsoid.
rgl.ellipsoid
# NOT RUN { options(rgl.useNULL = TRUE) phi=30*pi/180 ; theta= 20*pi/180; psi = 6*pi/180 rr = euler_passive(phi,theta,psi) # }
Run the code above in your browser using DataLab