# shz_quat_slerp

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

> Returns the quaternion that is spherically linearly interpolating a to b, by a t factor of 0.0f-1.0f

```c
SHZ_INLINE shz_quat_t shz_quat_slerp(shz_quat_t q, shz_quat_t p, float t) SHZ_NOEXCEPT;
```

Returns the quaternion that is spherically linearly interpolating `a` to `b`, by a `t` factor of `0.0f-1.0f`.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `q` | `shz_quat_t` |  |
| `p` | `shz_quat_t` |  |
| `t` | `float` |  |

## Returns

`shz_quat_t`

## Availability

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