quaternion.toangleaxis
EditReturns the angle/axis representation of the quaternion, as 4 numbers.
angle, ax, ay, az = quaternion.toangleaxis(q)Arguments
| Name | Type | Description |
| q | quaternion | The quaternion. |
Returns
| Name | Type | Description |
| angle | number | The number of radians the quaternion rotates around the axis of rotation. |
| ax | number | The x component of the axis of rotation. |
| ay | number | The y component of the axis of rotation. |
| az | number | The z component of the axis of rotation. |