My text book of Coordinate Geometry defines straight line as follows:-
Equation of a line:- Equation of a straight line is an equation in $x$ and $y$ which is satisfied by the coordinates of all points on the line and is not satisfied by the coordinates of any points which does not lie on the line. Thus, in order to find the equation of a line and establish a relation in $x$ and $y$ which contains only $x$ and $y$ and known quantities.
I don't see the significance of this definition of line, at least at my present level of mastery of the subject(which you can say is infinitesimal).
Is this just a formal way to define a line, or does this help in proving some very non-intuitive results in geometry. Some illustrations to show the significance of this definition would be appreciated.
Also, I think that defining the line in terms of points holds some algebraic relevance like relating the solution set or something like that. I am not very clear what I am trying to conclude by trying to come up with an algebraic connection but I think that the book implies to think of the solution set of the equation. Am I thinking correctly in this regard or am I just thinking aimlessly, if the direction is correct then if you could can you give a suitable example to illustrate it. I would be pleased if you can also answer this additional question.