#include <LinearInterpolation.h>
|
static float | Calculate (float x, float x1, float y1, float x2, float y2) |
|
Class to calculate linear interpolation
◆ Calculate()
static float ctre::phoenix::LinearInterpolation::Calculate |
( |
float |
x, |
|
|
float |
x1, |
|
|
float |
y1, |
|
|
float |
x2, |
|
|
float |
y2 |
|
) |
| |
|
static |
Calculates the linear interpolation of x
- Parameters
-
x | value to interpolate between |
x1 | min x value |
y1 | y value that corresponds to x1 |
x2 | max x value |
y2 | y value that corresponds to x2 |
- Returns
- interpolated point
The documentation for this class was generated from the following file: