linearInterp

Linear Interpolation between two points. (x1,y1) is the leftmost point and (x2,y2) is the rightmost point. x is some number between x1 and x2. Returns the corresopnding y value for x such that (x,y) is a point on the line that intersects (x1,y1) and (x2,y2)

float
linearInterp
nothrow @nogc
(
float x1
,
float x2
,
float y1
,
float y2
,
float x
)

Meta