Windows apps
Collapse the table of content
Expand the table of content

Quaternion::CreateFromAxisAngle Method

Creates a quaternion from a vector and an angle to rotate about the vector.

Namespace:  System.Numerics
Assembly:  System.Numerics.Vectors (in System.Numerics.Vectors.dll)

public:
static Quaternion CreateFromAxisAngle(
	Vector3 axis, 
	float angle
)

Parameters

axis
Type: System.Numerics::Vector3

The vector to rotate around.

angle
Type: System::Single

The angle, in radians, to rotate around the vector.

Return Value

Type: System.Numerics::Quaternion
The newly created quaternion.
Show:
© 2017 Microsoft