Resources:


Written as

Where is called the scalar part and is called the vector part. Quaternion addition is the same as normal vectors, but multiplication is given by

Euler Angles to Quaternions