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

Matrix4x4::CreateFromAxisAngle Method

Creates a matrix that rotates around an arbitrary vector.

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

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

Parameters

axis
Type: System.Numerics::Vector3

The axis to rotate around.

angle
Type: System::Single

The angle to rotate around axis, in radians.

Return Value

Type: System.Numerics::Matrix4x4
The rotation matrix.
Show:
© 2017 Microsoft