# shz_quat_axis

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

```c
SHZ_INLINE shz_vec3_t shz_quat_axis(shz_quat_t q) SHZ_NOEXCEPT;
```

Returns the axis of rotation from the given quaternion.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `q` | `shz_quat_t` |  |

## Returns

`shz_vec3_t`

## Availability

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