# rotation(float3x3)

> Extracts the rotation from a matrix.

## Definition

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

```csharp
public static quaternion rotation(float3x3 m)
```

### Parameters

**** (\[float3x3]\(/engine/6000.7/script-reference/unity/mathematics/float3x3)): Matrix to extract rotation from

### Returns

| Type                                                                          | Description        |
| ----------------------------------------------------------------------------- | ------------------ |
| [quaternion](/engine/6000.7/script-reference/unity/mathematics/quaternion.md) | Extracted rotation |

### Remarks

This method supports any type of rotation matrix: if the matrix has a non uniform scale you should use this method.
