Functions Index :: L :: Line2pt
Module:
Definition:
Line2pt(float x, float x1, float y1, float x2, float y2)
Description:
Returns the y-value of x so that the point (x,y) lies on a line defined by two given points (x1,y1) and (x2,y2).
Examples:
y1 = Line2pt(2, 0, 1, 4, 3) # y = 0.5x + 1 == 2
y2 = Line2pt(0, 1, 1, 3, -1) # y = -x + 2 == 2