# EulerZYX(quaternion)

> Returns the Euler angle representation of the quaternion following the ZYX rotation order. All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Mathematics](/engine/6000.7/script-reference/unity/mathematics.md)
* **Assembly:** UnityEngine.MathematicsModule

```csharp
public static float3 EulerZYX(quaternion q)
```

### Parameters

**** (\[quaternion]\(/engine/6000.7/script-reference/unity/mathematics/quaternion)): The quaternion to convert to Euler angles.

### Returns

| Type                                                                  | Description                                                    |
| --------------------------------------------------------------------- | -------------------------------------------------------------- |
| [float3](/engine/6000.7/script-reference/unity/mathematics/float3.md) | The Euler angle representation of the quaternion in ZYX order. |
