CTRE Phoenix C++ 5.33.1
ctre::phoenix::LinearInterpolation Class Reference

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...
 

Detailed Description

Class to calculate linear interpolation.

Member Function Documentation

◆ 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
xvalue to interpolate between
x1min x value
y1y value that corresponds to x1
x2max x value
y2y value that corresponds to x2
Returns
interpolated point

The documentation for this class was generated from the following file: