Updated the rotation matrix calculation to be independent of the value of N.
Authored by: bugman 2008-01-16
Parent: [r4770]
Child: [r4772]