Quaternion.CreateFromAxisAngle Method (Vector3, Single)
Creates a Quaternion from a vector and an angle to rotate about the vector.
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public static Quaternion CreateFromAxisAngle (
Vector3 axis,
float angle
)
Parameters
- axis
The vector to rotate around. - angle
The angle to rotate around the vector.
Return Value
The created Quaternion.
See Also
Reference
Quaternion Structure
Quaternion Members
Microsoft.Xna.Framework Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista