# shz_barycentric_lerpf

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

> Returns a value that is barycentrically interpolated between a, b, and c using the given barycentric coordinates, u and v

```c
SHZ_INLINE float shz_barycentric_lerpf(float a, float b, float c, float u, float v) SHZ_NOEXCEPT;
```

Returns a value that is barycentrically interpolated between `a`, `b`, and `c` using the given barycentric coordinates, `u` and `v`.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `a` | `float` |  |
| `b` | `float` |  |
| `c` | `float` |  |
| `u` | `float` |  |
| `v` | `float` |  |

## Returns

`float`

## Availability

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