Quaternion.CreateFromAxisAngle Method (Vector3, Single)
Creates a Quaternion from a vector and an angle to rotate about the vector.
Syntax
'Declaration
Public Shared Function CreateFromAxisAngle ( _
axis As Vector3, _
angle As Single _
) As Quaternion
public static Quaternion CreateFromAxisAngle (
Vector3 axis,
float angle
)
public:
static Quaternion CreateFromAxisAngle(
Vector3 axis,
float angle
)
Parameters
- axis
Type: Vector3
The vector to rotate around. - angle
Type: Single
The angle to rotate around the vector.
Return Value
Type: Quaternion
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