Bug fix for the quaternion_to_R() function.
Authored by: bugman 2009-05-28
Parent: [r9063]
Child: [r9065]