Matrix.RotationQuaternion Method |
Language: |
Builds a matrix from a quaternion.
Visual Basic Public Shared Function RotationQuaternion( _
ByVal quat As Quaternion _
) As MatrixC# public static Matrix RotationQuaternion(
Quaternion quat
);C++ public:
static Matrix RotationQuaternion(
Quaternion quat
);JScript public static function RotationQuaternion(
quat : Quaternion
) : Matrix;
quat Microsoft.DirectX.Quaternion
Source Quaternion structure.
Microsoft.DirectX.Matrix
Rotated Matrix structure.
For information about how to calculate quaternion values from a direction vector (x, y, z) and an angle of rotation, see Quaternion.
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