Bug fix for the calc_rotation() function.
The axis permutation for | Azz | >= | Ayy | >= | Axx | is now correctly performed.
Authored by: bugman 2009-12-07
Parent: [r10064]
Child: [r10066]