UnsafeNativeMethods.Matrix.RotationQuaternion(Matrix,Quaternion) Method (Microsoft.DirectX)

Builds a matrix from a quaternion.

Note: For programming in Microsoft Visual Basic .NET or Microsoft JScript .NET, use the equivalent method in the Microsoft.DirectX structures.

Definition

Visual Basic Public Shared Function RotationQuaternion( _
    ByVal pOut As Matrix, _
    ByVal quat As Quaternion _
) As Matrix
C# public static Matrix RotationQuaternion(
    Matrix pOut,
    Quaternion quat
);
C++ public:
static Matrix RotationQuaternion(
    Matrix pOut,
    Quaternion quat
);
JScript public static function RotationQuaternion(
    pOut : Matrix,
    quat : Quaternion
) : Matrix;

Parameters

pOut Microsoft.DirectX.Matrix
Rotated Matrix structure.
quat Microsoft.DirectX.Quaternion
Source Quaternion structure.

Return Value

Microsoft.DirectX.Matrix
Rotated Matrix structure.

Remarks

For information about how to calculate quaternion values from a direction vector (x, y, z) and an angle of rotation, see Quaternion.

The return value for this method is the same value returned in the pOut parameter. This allows you to use the RotationQuaternion method as a parameter for another method.

See Also