共用方式為


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

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