MathUtilities.QuaternionFromMatrix(Matrix4x4) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a quaternion containing the rotation from the input matrix.
public:
static UnityEngine::Quaternion QuaternionFromMatrix(UnityEngine::Matrix4x4 m);
public static UnityEngine.Quaternion QuaternionFromMatrix (UnityEngine.Matrix4x4 m);
static member QuaternionFromMatrix : UnityEngine.Matrix4x4 -> UnityEngine.Quaternion
Public Shared Function QuaternionFromMatrix (m As Matrix4x4) As Quaternion
Parameters
- m
- UnityEngine.Matrix4x4
Input matrix to convert to quaternion
Returns
UnityEngine.Quaternion