- multiply the current matrix by a rotation matrix
C SPECIFICATION
PARAMETERS
_param1 Specifies the angle of rotation, in degrees.
_param2, _param3, _param4
Specify the x, y, and z coordinates of a vector,
respectively.
DESCRIPTION
glRotate produces a rotation of _param1 degrees around the
vector (_eqnparam2,_eqnparam3,_eqnparam4). The current
matrix (see glMatrixMode) is multiplied by a rotation
matrix with the product replacing the current matrix, as
if glMultMatrix were called with the following matrix as
its argument:
_eqnparam3_eqnparam2(1-c)+_eqnparam4s _eqnparam32(1-c)+c _eqnparam3_eqnparam4(1-c)-_eqnparam2s 0
( )
_eqnparam2_eqnparam4(1-c)-_eqnparam3s _eqnparam3_eqnparam4(1-c)+_eqnparam2s _eqnparam42(1-c)+c 0
NOTES
This rotation follows the right-hand rule, so if the vec-
tor (_eqnparam2,_eqnparam3,_eqnparam4) points toward the
user, the rotation will be counterclockwise.
ERRORS
GL_INVALID_OPERATION is generated if glRotate is executed
between the execution of glBegin and the corresponding
execution of glEnd.
ASSOCIATED GETS
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
1