Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ rotate(3g) — GL2 W2.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

rotate()  —  Silicon Graphics Beta Release

NAME

rotate - rotates graphical primitives

SPECIFICATION

C
rotate(a, axis)
Angle a;
char axis;

FORTRAN
subroutine rotate(a, axis)
integer*4 a
character axis

Pascal
procedure rotate(a: Angle; axis: char);

DESCRIPTION

rotate specifies an angle and an axis of rotation.  The angle is given in tenths of 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 lower case).  rotate is a modeling command; thus, it changes the current transformation matrix.  All objects drawn after the rotate command is executed will be rotated.  Use pushmatrix and popmatrix to preserve and restore an unrotated world space. 

SEE ALSO

popmatrix, pushmatrix, scale, translate

Version 2.3  —  July 04, 1985

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