rotation(float3x3)
Extracts the rotation from a matrix.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: Unity.Mathematics
- Assembly: UnityEngine.MathematicsModule
public static quaternion rotation(float3x3 m)
Parameters
Matrix to extract rotation from
Returns
Type | Description |
|---|---|
| quaternion | Extracted rotation |
Remarks
This method supports any type of rotation matrix: if the matrix has a non uniform scale you should use this method.