Consider the points
See development and solution
Development:
We will start computing a director vector of the straight line:
Therefore, with the director vector and point
Finally, if we separate the continuous equations and simplify a little bit we have: