Description Usage Arguments Examples
Generation of orthogonal rotation matrix for Euler angles phi, teta, psi
1 | euler_orth(phi = 0, theta = 0, psi = 0)
|
phi |
|
theta |
|
psi |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (phi = 0, theta = 0, psi = 0)
{
r <- matrix(0, 3, 3)
r[1, 1] <- cos(theta) * cos(psi)
r[1, 2] <- -cos(phi) * sin(psi) + sin(phi) * sin(theta) *
cos(psi)
r[1, 3] <- sin(phi) * sin(psi) + cos(phi) * sin(theta) *
cos(psi)
r[2, 1] <- cos(theta) * sin(psi)
r[2, 2] <- cos(phi) * cos(psi) + sin(phi) * sin(theta) *
sin(psi)
r[2, 3] <- -sin(phi) * cos(psi) + cos(phi) * sin(theta) *
sin(psi)
r[3, 1] <- -sin(theta)
r[3, 2] <- sin(phi) * cos(theta)
r[3, 3] <- cos(phi) * cos(theta)
r
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.