13.003 Computational Geometry and Visualization


Rotation

    glRotate{fd}(a, x, y, z);

where a is the (right-handed) rotation angle, given in degrees, and (x, y, z) define the axis of rotation.

  C' = CR

where

  R =        0
         M   0
             0
       0 0 0 1

where M is a general 3x3 rotation matrix.

Note the following three special cases of rotation about the coordinate axes.

Like scaling, rotation is performed relative to the origin of the current coordinate system.


On to "Viewing Transformations"
Back to "Viewing and modeling transformations"
Back to "Lectures on OpenGL and Computer Graphics"