# shz_quat_to_axis_angle

Source: https://sh4zam.com/api/quat/shz_quat_to_axis_angle/

```c
SHZ_INLINE void shz_quat_to_axis_angle(shz_quat_t q, shz_vec3_t* vec, float* angle) SHZ_NOEXCEPT;
```

Returns both the axis and angle of rotation simultaneously (faster if both are needed) from the given quaternion.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `q` | `shz_quat_t` |  |
| `vec` | `shz_vec3_t *` |  |
| `angle` | `float *` |  |

## Returns

Nothing (`void`).

## Availability

- **C++ equivalent:** [`shz::quat::to_axis_angle`](https://sh4zam.com/api/cpp/quat/#to_axis_angle)
- **Type-generic form:** none
- **Back-ends:** SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_quat.h:168`](https://github.com/gyrovorbis/sh4zam/blob/ba1e30c88d49df0311870b229e1dd860ef26c477/include/sh4zam/shz_quat.h#L168)
- **Module:** [Quaternion](https://sh4zam.com/api/quat/), section "Properties"
