rotation(float3x3)
Extracts the rotation from a matrix.
阅读时间1 分钟最后更新于 1 个月前
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.