Bug fix for the quaternion_to_R() function.
The Wikipedia page was wrong (or at least misleading). The calculation of the rotation matrix is now correct.
Authored by: bugman 2009-08-18
Parent: [r9324]
Child: [r9326]