![]() |
![]() |
![]() |
UnsafeNativeMethods.Matrix.RotationQuaternion Method |
Language: |
Builds a matrix from a quaternion.
Visual Basic .NET Public Shared Function RotationQuaternion( _
ByVal pOut As Matrix, _
ByVal quat As Quaternion _
) As MatrixC# public static Matrix RotationQuaternion(
Matrix pOut,
Quaternion quat
);Managed C++ public: static Matrix RotationQuaternion(
Matrix pOut,
Quaternion quat
);JScript .NET public static function RotationQuaternion(
pOut : Matrix,
quat : Quaternion
) : Matrix;
pOut Microsoft.DirectX.Matrix. Rotated Matrix structure. 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.
The return value for this method is the same value returned in the pOut parameter. Resultantly, the RotationQuaternion method can be used as a parameter for another method.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center