Conversion between quaternions and Euler angles
Appearance
The orthogonal matrix corresponding to a rotation by the unit quaternion z = a + bi + cj + dk (with |z| = 1) is given by
The orthogonal matrix corresponding to a rotation with Euler angles , is given by