A point P=(x,y,z) is represented with the quaternion p = ix + jy + kz.
A rotation of the angle around the x-axis is represented with the quaternion
.
The rotated point is .
Conversion of quaternion to rotation matrix
-->
Conversion of rotation matrix to quaternion