rot(3G) rot(3G)
NAME
rot - rotates graphical primitives (floating point version)
SPECIFICATION
C rot(a, axis)
float a;
char axis;
FORTRAN subroutine rot(a, axis)
real a
character axis
DESCRIPTION
rot specifies an angle (a) and an axis of rotation (axis).
The floating point angle is given in degrees according to
the right-hand rule. The axis of rotation is defined by a
character, either 'x', 'y', or 'z' (the character can be
upper- or lowercase).
rot is a modeling routine; it changes the current
transformation matrix. All objects drawn after rot executes
are rotated. Use pushmatrix and popmatrix to preserve and
restore an unrotated world space.
SEE ALSO
popmatrix, pushmatrix, rotate, scale, translate
Programming Guide, Section 4.1 Modeling Transformations
Page 1 (printed 8/20/87)