Made InvertM3() a touch more readable.

Instead of reusing the det variable, we introduce a new variable
named invDet. Any compiler worth it's salt should prevent the
allocation of an additional stack variable.
Added method to construct rotation matrices.

This makes up for the missing glRotatef in OpenGL 3.x.