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