# shz_lerpf

Source: https://sh4zam.com/api/scalar/shz_lerpf/

> Returns a value that is linearly interpolated between a and b by the given ratio, t

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

Returns a value that is linearly interpolated between `a` and `b` by the given ratio, `t`.

## Parameters

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

## Returns

`float`

## Availability

- **C++ equivalent:** [`shz::lerpf`](https://sh4zam.com/api/cpp/#shzlerpf)
- **Type-generic form:** none
- **Back-ends:** SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_scalar.h:246`](https://github.com/gyrovorbis/sh4zam/blob/ba1e30c88d49df0311870b229e1dd860ef26c477/include/sh4zam/shz_scalar.h#L246)
- **Module:** [Scalar](https://sh4zam.com/api/scalar/), section "Miscellaneous"
