Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ rot(3g) — GL2 W2.5r1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

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

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026