Formula
$$\dfrac{x-x_1}{X} = \dfrac{y-y_1}{Y}$$
Variables
A(x1,y1)
→
Point on a line
(X,Y)
→
Line direction - vector parallel to the line
$$\dfrac{x-x_1}{X} = \dfrac{y-y_1}{Y}$$