Matrix.CreateFromAxisAngle Method (Vector3, Single)
Creates a new Matrix that rotates around an arbitrary vector.
Syntax
'Declaration
Public Shared Function CreateFromAxisAngle ( _
axis As Vector3, _
angle As Single _
) As Matrix
public static Matrix CreateFromAxisAngle (
Vector3 axis,
float angle
)
public:
static Matrix CreateFromAxisAngle(
Vector3 axis,
float angle
)
Parameters
- axis
Type: Vector3
The axis to rotate around. - angle
Type: Single
The angle to rotate around the vector.
Return Value
Type: Matrix
The created Matrix.
Requirements
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
Matrix Structure
Matrix Members
Microsoft.Xna.Framework Namespace
Platforms
Windows Phone