Description Usage Arguments Details Value Author(s) See Also Examples
Calculates the matrix to incline the horizontal plane of a 3D plot by phi degree
1 | E.phi(phi)
|
phi |
Angle, in degrees. |
The userMatrix
for spinning has the form E.phi(phi) %*% S.theta(theta)
Returns the 4 x 4 rotation matrix
Georges Monette
S.theta
, ~~~
1 2 3 4 5 6 7 8 9 10 11 | ##---- 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 ) {
# incline horizontal plane by phi degrees
# note that userMatrix for spinning has form E.phi %*% S.theta
phi = phi *2*pi/360
cbind(c(1,0,0,0), c(0,cos(phi),sin(phi),0), c(0,-sin(phi), cos(phi),0), c(0,0,0,1))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.