guRotate.3p 1.02 KB
.TH guRotate 3P local "Silicon Graphics, Inc."
.SH NAME
.upperok
guRotate, guRotateF, guRotateRPY, guRotateRPYF \- computes a rotational modeling matrix.
.SH C SPECIFICATION
.nf
\f3#include "gu.h"

void guRotate(Mtx m, float a, float x, float y, float z )

void guRotateF(float m[4][4], float a, float x, float y, float z )

void guRotateRPY(Mtx m,	float r, float p, float y )

void guRotateRPYF(float m[4][4], float r, float p, float y )

\fP
.fi
.SH PARAMETERS
.TP 10
.I m
resulting 4x4 projection matrix.
.TP
.I a
angle in degrees.
positive angles represent counter-clockwise rotation.
.TP
.I x, y, z
axis of rotation.
.TP
.I r, p, y
roll, pitch and yaw in degrees.
.SH DESCRIPTION
.I guRotate
and
.I guRotateRPY
return a fixed-point 4x4 matrix 
.B m.
.PP
For a detailed description of the 
fixed-point matrix format, see
.I gSPMatrix (3P).
.PP
.I guRotateF
and
.I guRotateRPYF
return a floating-point 4x4 matrix 
.B m.

.SH SEE ALSO
.IR guTranslate (3P)
.IR guScale (3P)
.IR guPosition (3P)
.IR guAlign (3P)
.IR gSPMatrix (3P)
.IR glRotate (3G)