Method RotationAxis
RotationAxis(Vector3, Single)
Creates a matrix that rotates around an arbitrary axis.
Declaration
public static Matrix RotationAxis(Vector3 axis, float angle)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | axis | The axis around which to rotate. |
| System.Single | angle | Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis toward the origin. |
Returns
| Type | Description |
|---|---|
| Matrix | The created rotation matrix. |