Method rotation
rotation(float3x3)
Extracts the rotation from a matrix.
Declaration
public static quaternion rotation(float3x3 m)
Parameters
| Type | Name | Description |
|---|---|---|
| float3x3 | m | 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.