CTRE_Phoenix 5.20.2
ctre::phoenix::LinearInterpolation Class Reference

#include <LinearInterpolation.h>

Static Public Member Functions

static float Calculate (float x, float x1, float y1, float x2, float y2)
 

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: