C SPECIFICATION
void GLAPIENTRY glRotated( GLdouble angl )
void GLAPIENTRY glRotatef( GLfloat angl )
PARAMETERS
angl Specifies the angle of rotation, in degrees.
__<I>e<I>q<I>n<I>p<I>a<I>ra<I>m3_<I>e<I>q<I>n<I>p<I>ar<I>a<I>m2(1-<I>c)+_eqnparam4s
Specify the x, y, and z coordinates of a vector, respectively.
DESCRIPTION
glRotate produces a rotation of angl degrees around the vector (_eqn-
param2,_eqnparam3,_eqnparam4). The current matrix (see glMatrixMode)
is multiplied by a rotation matrix with the product replacing the cur-
rent matrix, as if glMultMatrix were called with the following matrix
as its argument:
(
_eqnparam2_eqnparam4(1-c)-_eqnparam3s
0
param4s _eqnparam2_eqnparam4(1-c)+_eqnparam3s 0
_eqnparam32(1-c)+c _eqnparam3_eqnparam4(1-c)-_eqnparam2s 0
)
_eqnparam3_eqnparam4(1-c)+_eqnparam2s _eqnparam42(1-c)+c 0
0 0 1
Where c=cos(angl), s=sin(angl), and ||(_eqnparam2,_eqnparam3,_eqn-
param4)||=1 (if not, the GL will normalize this vector).
glGet with argument GL_MATRIX_MODE
glGet with argument GL_COLOR_MATRIX
glGet with argument GL_MODELVIEW_MATRIX
glGet with argument GL_PROJECTION_MATRIX
glGet with argument GL_TEXTURE_MATRIX
SEE ALSO
glMatrixMode, glMultMatrix, glPushMatrix, glScale, glTranslate
GLROTATE(3G)
Man(1) output converted with
man2html