Quaternion.CreateFromAxisAngle Method (Vector3, Single, Quaternion)

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 void CreateFromAxisAngle (
         ref Vector3 axis,
         float angle,
         out Quaternion result
)

Parameters

  • axis
    The vector to rotate around.
  • angle
    The angle to rotate around the vector.
  • result
    [OutAttribute] The created Quaternion.

See Also

Reference

Quaternion Structure
Quaternion Members
Microsoft.Xna.Framework Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista