Method RotationAxis
RotationAxis(Vector3, Single)
Creates a quaternion given a rotation and an axis.
Declaration
public static Quaternion RotationAxis(Vector3 axis, float angle)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | axis | The axis of rotation. |
System.Single | angle | The angle of rotation in radians. |
Returns
Type | Description |
---|---|
Quaternion | The newly created quaternion. |