02 June 2015 - Jon Hall
Interpolation
This interactive demonstration is linked to from Basic Math: Interpolation in our blog series on Game Engines in JavaScript.
Linear Interpolation
Modify the positions of Point 1 and 2, shown on the graph in green (values outside +/-1 will be outside the visual bounds)
The linear interpolant is shown in red on the graph. The X value can be modified and will update accordingly.
(Being an interpolant, X values are bound within the point range)
Interpolant = Gy + I
Point 1
Point 2
Point 2