linear interpolation: returns the y values matching the x values (vector)
on the line through points pnt1 and pnt2 (both are vectors of length 2)
possible error if both X-coordinates equal not checked or caught
Usage
linterpol(x, pnt1, pnt2)
Arguments
x
x-coordinate for which corresponding y-coordinate is sought.