This section defines the formulas used by the rot, rotate, translate, scale, lookat, polarview, window, and perspective subroutines. These formulas are placed here for information only. It is not necessary to understand their meaning to use them successfully.
The rot and rotate subroutines create the following matrix and premultiply it into the current matrix.
The translate subroutine creates the following matrix and premultiplies it into the current matrix.
The scale subroutine creates the following matrix and premultiplies it into the current matrix.
The polarview and lookat subroutines create the following matrix and premultiply it into the current matrix.
The perspective transformation subroutines create the following matrices and load them as the projection matrix.
The orthographic subroutines create the following matrices and load them as the projection matrix.