Quaternion.RotationMatrix Method

Language:

Builds a quaternion from a rotation matrix.

Definition

Visual Basic Public Shared Function RotationMatrix( _
    ByVal m As Matrix _
) As Quaternion
C# public static Quaternion RotationMatrix(
    Matrix m
);
C++ public:
static Quaternion RotationMatrix(
    Matrix m
);
JScript public static function RotationMatrix(
    m : Matrix
) : Quaternion;

Parameters

m Microsoft.DirectX.Matrix
Source Matrix structure that defines the rotation.

Return Value

Microsoft.DirectX.Quaternion
A Quaternion structure built from a rotation matrix.

See Also


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center