The formula: y1 * (1-x) + y2 * x is a Linear Interpolation formula. I am trying to understand if this formula will yield the middle values between two points such as: Point 1: (5,10 ) and Point 2: (20,15)
Would this be the diagonal line connecting these two points. If so, is "x" the range value from x1 to x2?. I am trying to code this in a computer function to test.
Thanks in advance