CTRE Phoenix C++ 5.33.1
|
Class to calculate linear interpolation. More...
#include <ctre/phoenix/LinearInterpolation.h>
Static Public Member Functions | |
static float | Calculate (float x, float x1, float y1, float x2, float y2) |
Calculates the linear interpolation of x. More... | |
Class to calculate linear interpolation.
|
static |
Calculates the linear interpolation of x.
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 |