Description Usage Arguments Value See Also Examples
Rotate an object by c(ax,ay,az) in the x y and z planes, about the point c(x,y,z) Uses the right-hand coordinate system (this is the only functin in this package which is handed in this way). Rotates about first the x axis, then y, then z. This operation is not commutable (i.e. if you rotate by the various angles about first z, then x then y, you'd get a different result).
1 | Spc.Rotate(object, pivot.point = NA, pivot.angle)
|
object |
The object (elementary or compound) to be rotated |
pivot.point |
Vector of the point in space to rotate about. Defaults to NA, which causes it to pivot about the object's own centre |
pivot.angle |
Vector of angles to rotate about (x,y,z) - in degrees |
The same object, but with all appropriate spacial points updated accordingly
Other transforms: Spc.Translate
1 | my_object <- Spc.Rotate(my_object,c(0,0,0),c(45,0,0))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.