Thank you very much for your comments.
For practical wider interest, please include, if possible, also the "Euler–Rodrigues Quaternion Formulation".
The
AngVec2Quat and
Quat2AngVec functions are intended to perform Euler-Rodriguez to Quaternion conversion and vice-versa, respectively: i.e. the Angle-Vector parameters correspond to the Euler-Rodriguez representation of rotations.
Best regards,
massimo