Linear interpolation is a method of curve fitting using linear
polynomials. It is heavily employed in mathematics (particularly
numerical analysis), and numerous applications including
computer graphics. It is a simple form of interpolation. Lerp is
a quasi-acronym for linear interpolation, which can also be used
as a verb (Raymond 2003). Linear interpolation between two known
pointsEdit If the two known points are given by the coordinates
and , the linear interpolant is the straight line between these
points. For a value x in the interval , the value y along the
straight line is given from the equation which can be derived
geometrically from the figure on the right. Solving this
equation for y, which is the unknown value at x, gives which is
the formula for linear interpolation in the interval . Outside
this interval, the formula is identical to linear extrapolation.
Interpolation of a data setEdit Linear interpolation on a set of
data points is defined as the concatenation of linear
interpolants between eac