Yes. You need only two points.
If A (ax, ay) and B (bx, by) are two points on the line then the gradient (slope) of the line is m = (by - ay)/(bx - ax) provided bx ≠ ax.
From this you can calculate m. Then the general slope-intercept form of the equation is y = mx + c.
Substitute the coordinates of A or B into this equation to find c.
If bx = ax then the line is parallel to the y axis and its equation is x = ax.
There are other methods to find the equation of a straight line.
Comments
Leave a comment