# shz_vec3_lerp

Source: https://sh4zam.com/api/vector/shz_vec3_lerp/

> Returns a 3D vector that is linearly interpolated from a to b by the given 0.0f-1.0f factor, t

```c
SHZ_INLINE shz_vec3_t shz_vec3_lerp(shz_vec3_t a, shz_vec3_t b, float t) SHZ_NOEXCEPT;
```

Returns a 3D vector that is linearly interpolated from `a` to `b` by the given `0.0f-1.0f` factor, `t`.

## Parameters

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

## Returns

`shz_vec3_t`

## Availability

- **C++ equivalent:** [`shz::vec3::lerp`](https://sh4zam.com/api/cpp/vec3/#lerp)
- **Type-generic form:** [`shz_vec_lerp()`](https://sh4zam.com/api/vector/shz_vec_lerp/)
- **Back-ends:** SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_vector.h:523`](https://github.com/gyrovorbis/sh4zam/blob/ba1e30c88d49df0311870b229e1dd860ef26c477/include/sh4zam/shz_vector.h#L523)
- **Module:** [Vector](https://sh4zam.com/api/vector/), section "Binary Operations"
