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

Builds a matrix from a quaternion.

Definition

Visual BasicPublic Shared Function RotationQuaternion( _
    ByVal quat As Quaternion _
) As Matrix
C#public static Matrix RotationQuaternion(
    Quaternion quat
);
C++public:
static Matrix RotationQuaternion(
    Quaternion quat
);
JScriptpublic static function RotationQuaternion(
    quat : Quaternion
) : Matrix;

Parameters

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.

See Also

Show: