quattomatrix
expression function
Converts quaternion to a 3×3 rotation matrix.