# shz_quat_nlerp

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

> Equivalent to shz_quat_lerp(), except that the resulting quaternion is normalized

```c
SHZ_INLINE shz_quat_t shz_quat_nlerp(shz_quat_t a, shz_quat_t b, float t) SHZ_NOEXCEPT;
```

Equivalent to `shz_quat_lerp()`, except that the resulting quaternion is normalized.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `a` | `shz_quat_t` |  |
| `b` | `shz_quat_t` |  |
| `t` | `float` |  |

## Returns

`shz_quat_t`

## Availability

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