|
PER Firmware
|
Linear interpolation lookup table (LUT). More...
#include "lerp_lut.h"Functions | |
| float | lut_lookup (const lerp_lut_t *lut, float key) |
| Lookup a value in a linear interpolation lookup table (LUT). | |
Linear interpolation lookup table (LUT).
| float lut_lookup | ( | const lerp_lut_t * | lut, |
| float | key ) |
Lookup a value in a linear interpolation lookup table (LUT).
This function performs a binary search to find the appropriate interval in the LUT and then linearly interpolates between the two nearest entries.
| lut | Pointer to the LUT. |
| key | The key to look up. |