# What is the difference between quaternion and Euler?

## What is the difference between quaternion and Euler?

Quaternions are a more general algebraic structure that can be used to represent Euler angles. It’s similar to the way that vectors can be used to represent positions in space. Euler angles represent the orientation of a body in space—they’re given by numbers representing the angle of rotation about each axis.

## How do you get the difference between two quaternions in Assassin’s Creed Unity?

You can do this using quaternion multiplication. To get the difference C between quaternions A and B you do this: C = A * Quaternion.

**What does quaternion Euler do in unity?**

Returns a rotation that rotates z degrees around the z axis, x degrees around the x axis, and y degrees around the y axis; applied in that order.

**How are quaternions different from Euler angles in Unity?**

Quaternions differ from Euler angles in that they use imaginary numbers to define a 3D rotation. While this may sound complicated (and arguably it is), Unity has great builtin functions that allow you to switch between Euler angles and quaterions, as well as functions to modify quaternions, without knowing a single thing about the math behind them.

### Do you need to know quaternions in Unity?

The good news is that you don’t have to understand them. While Unity wants quaternions from you when setting angles, you can simply create the quaternion from Euler angles and forget what the quaternion is. Additionally, when Unity gives you an angle (as a quaternion), you can convert it back to an euler angle to get a more readable rotation.

### How to set the rotation of a quaternion?

You can set the rotation of a Quaternion by setting this property, and you can read the Euler angle values by reading this property. When using the .eulerAngles property to set a rotation, it is important to understand that although you are providing X, Y, and Z rotation values to describe your rotation, those values are not stored in the rotation.

**When did Euler first use quaternions in dynamics?**

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 this application as “Euler parameters”.