Find the slope m=(x1-x2)/(y1-y1) and make a loop of x where y=mx+c (c=0). now get

(x,y) for a range of x. I'm not sure about my equations. please check those are correct or not.

Correct equations, given (x1, y1) (x2, y2):

m = (y1 - y2) / (x1-x2);

c = y1 - x1 * m;

Then, for any given x:

y = mx + c;

13,407,374 members (53,742 online)

Email

Password

Sign in with