Spatial rotations in three dimensions can be parametrized using both Euler angles and unit quaternions. This article explains how to convert between the two representations. Actually this simple use of "quaternions" was first presented by Euler some seventy years earlier than Hamilton to solve the problem of magic squares. For this reason the dynamics community commonly refers to quaternions in th
![Conversion between quaternions and Euler angles - Wikipedia](https://cdn-ak-scissors.b.st-hatena.com/image/square/b08cf6c8237fa5fcfa18ef909a0b738315552868/height=288;version=1;width=512/https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2Fthumb%2Fa%2Fa1%2FEulerangles.svg%2F300px-Eulerangles.svg.png)