Matrix.CreateFromQuaternion Method (Quaternion)
Creates a rotation Matrix from a Quaternion.
Syntax
'Declaration
Public Shared Function CreateFromQuaternion ( _
quaternion As Quaternion _
) As Matrix
public static Matrix CreateFromQuaternion (
Quaternion quaternion
)
public:
static Matrix CreateFromQuaternion(
Quaternion quaternion
)
Parameters
- quaternion
Type: Quaternion
Quaternion to create the Matrix from.
Return Value
Type: Matrix
The created Matrix.
Requirements
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
Matrix Structure
Matrix Members
Microsoft.Xna.Framework Namespace
Platforms
Windows Phone