Spc.Rotate: Rotate an object by c(ax,ay,az) in the x y and z planes,...

Description Usage Arguments Value See Also Examples

View source: R/classdefs.R

Description

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).

Usage

1
Spc.Rotate(object, pivot.point = NA, pivot.angle)

Arguments

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

Value

The same object, but with all appropriate spacial points updated accordingly

See Also

Other transforms: Spc.Translate

Examples

1
  my_object <- Spc.Rotate(my_object,c(0,0,0),c(45,0,0))

JerBoon/vecspace documentation built on May 26, 2019, 7:28 a.m.