Quaternion.CreateFromRotationMatrix Method (Matrix, Quaternion)
Creates a Quaternion from a rotation Matrix.
Syntax
'Declaration
Public Shared Sub CreateFromRotationMatrix ( _
ref matrix As Matrix, _
out result As Quaternion _
)
public static void CreateFromRotationMatrix (
ref Matrix matrix,
out Quaternion result
)
public:
static void CreateFromRotationMatrix(
ref Matrix matrix,
out Quaternion result
)
Parameters
- matrix
Type: Matrix
The rotation Matrix to create the Quaternion from. - result
Type: Quaternion
[OutAttribute] The created Quaternion.
Requirements
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
Quaternion Structure
Quaternion Members
Microsoft.Xna.Framework Namespace
Platforms
Windows Phone