#include "src/utils/nominmax.h"
#include <algorithm>
#include <stdint.h>
#include <Arduino.h>
#include "preprocessor.h"
Go to the source code of this file.
|
| using | table2D_i8_u8_4 = table2D< int8_t, uint8_t, 4U > |
| |
| using | table2D_u8_u8_4 = table2D< uint8_t, uint8_t, 4U > |
| |
| using | table2D_u8_u8_6 = table2D< uint8_t, uint8_t, 6U > |
| |
| using | table2D_u8_u8_8 = table2D< uint8_t, uint8_t, 8U > |
| |
| using | table2D_u8_u8_9 = table2D< uint8_t, uint8_t, 9U > |
| |
| using | table2D_u8_u8_10 = table2D< uint8_t, uint8_t, 10U > |
| |
| using | table2D_u16_u8_32 = table2D< uint16_t, uint8_t, 32U > |
| |
| using | table2D_u16_u16_32 = table2D< uint16_t, uint16_t, 32U > |
| |
| using | table2D_u8_u16_4 = table2D< uint8_t, uint16_t, 4U > |
| |
| using | table2D_u8_s16_6 = table2D< uint8_t, int16_t, 6U > |
| |
|
| template<typename axis_t , typename value_t , uint8_t sizeT> |
| static value_t | table2D_getValue (const table2D< axis_t, value_t, sizeT > *fromTable, const axis_t axisValue) noexcept |
| | Interpolate a value from a 2d table.
|
| |
◆ table2D_i8_u8_4
◆ table2D_u16_u16_32
◆ table2D_u16_u8_32
◆ table2D_u8_s16_6
◆ table2D_u8_u16_4
◆ table2D_u8_u8_10
◆ table2D_u8_u8_4
◆ table2D_u8_u8_6
◆ table2D_u8_u8_8
◆ table2D_u8_u8_9
◆ table2D_getValue()
template<typename axis_t , typename value_t , uint8_t sizeT>
| static value_t table2D_getValue |
( |
const table2D< axis_t, value_t, sizeT > * |
fromTable, |
|
|
const axis_t |
axisValue |
|
) |
| |
|
inlinestaticnoexcept |
Interpolate a value from a 2d table.
- Template Parameters
-
| axis_t | The type of the table axis |
| value_t | The type of the table values |
| sizeT | The size of the table (number of axis and value elements) |
- Parameters
-
| fromTable | the table to get the value from |
| axisValue | the value to look up in the table axis |
- Returns
- value_t table value corresponding to the axis value (possibly interpolated)