(rotate (axis: coord (axis)) (angle: number (angle)) (object: gprim))Rotates all GPrims in the tree by angle counter-clockwise about axis.
The axis of rotation (will be normalize). For convenience, the global variables yaw, roll, and pitch are bound to (: 0 1 0), (: 0 0 1), and (: 1 0 0).
Angle specifying how far to rotate around axis. The angle is in degrees.
An arbitrary tree which contains of graphics primitive objects.
(rotate (axis: pitch) (angle: 45) (object: (Cone (radius:3)))
This code rotates a radius 3 cone 45 degrees counter-clockwise about the x axis.
© 1996, Morgan McGuire ([email protected]) and Laura Wollstadt ([email protected]). All rights reserved. LBW 12/05/96