Quaternion.CreateFromAxisAngle Method (Vector3, Single, Quaternion)
Creates a Quaternion from a vector and an angle to rotate about the vector.
Syntax
'Declaration
Public Shared Sub CreateFromAxisAngle ( _
ref axis As Vector3, _
angle As Single, _
out result As Quaternion _
)
public static void CreateFromAxisAngle (
ref Vector3 axis,
float angle,
out Quaternion result
)
public:
static void CreateFromAxisAngle(
ref Vector3 axis,
float angle,
out Quaternion result
)
Parameters
- axis
Type: Vector3
The vector to rotate around. - angle
Type: Single
The angle to rotate around the vector. - result
Type: Quaternion
[OutAttribute] The created Quaternion.
Requirements
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
Quaternion Structure
Quaternion Members
Microsoft.Xna.Framework Namespace
Platforms
Windows Phone