[Math] How to find coefficients a, b, c given two points

geometrytrigonometry

Suppose I have two points $A(x_A,y_A)$ and $B(x_B,y_B)$.

How can I find coefficients $a, b, c$ of the straight line general equation ?

$a x + b y + c = 0$

Best Answer

The answer is $$(y_A-y_B)x-(x_A-x_B)y+x_Ay_B-x_By_A=0.$$

Related Question