[]
Creates a matrix that rotates around an arbitary axis.
public static Matrix4x4 RotationAxis(Vector3 axis, float radians)
| Type | Name | Description |
|---|---|---|
| Vector3 | axis | The axis around which to rotate. This parameter is assumed to be normalized. |
| float | radians | Angle of rotation, in radians. Angles are measured clockwise when looking along the rotation axis toward the origin. |
| Type | Description |
|---|---|
| Matrix4x4 | The created rotation matrix. |