rot() — Silicon Graphics
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
Pascal
procedure rot(a: real; axis: longint);
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
Version 2.5r1 — October 29, 1986