Learn R Programming

Rquake (version 2.5-1)

getEulers: Get Eulers Angles

Description

Given a covariance matrix calculated with Vlocate, extract euler's angles for plotting in rgl

Usage

getEulers(R)

Value

vector, phi theta psi

Arguments

R

covarince matrix

Author

Jonathan M. Lees<jonathan.lees@unc.edu>

Details

Extract the euler angles for plotting an ellipsoid. psi about X-axis, theta about Y axis, phi about Z-axis.

See Also

ROTcovQUAKE

Examples

Run this code
options(rgl.useNULL = TRUE)
R = matrix( runif(9), ncol=3)

getEulers(R)




Run the code above in your browser using DataLab