What is NavToolkit?
Getting Started
Advanced Documentation
Reference Documentation
API Documentation
Defined in File interpolation.hpp
Performs a linear interpolation.
This is an approximation of y at x, given two reference points (x0, y0) and (x1, y1).
x0
y0
x1
y1
x0 – First evaluation point of f()
f()
y0 – f(x0)
f(x0)
x1 – Second evaluation point of f()
y1 – f(x1)
f(x1)
x – Point between x0 and x1 at which to calculate approximation.
An approximation for y = f(x). If x0 == x1, y1 is returned.
y = f(x)
x0 == x1