Learn R Programming

Rquake (version 2.4-4)

euler_passive: Euler Rotation Angles

Description

Given three angles return rotation matrix.

Usage

euler_passive(phi, theta, psi)

Arguments

phi

angle with x-axis

theta

angle with y-axis

psi

angle with z-axis

Value

3 by 3 rotation matrix.

Details

Code borrowed from cpp code in package cda. used in rgl.ellipsoid.

See Also

rgl.ellipsoid

Examples

Run this code
# 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