방정식

$y=mx+b$

기울기

$m={y_2-y_1\over x_2-x_1}$

두 직선이 평행할 때

두 직선이 수직일 때

점과 직선 사이의 거리

$d={|ax_1+by_1+c|\over \sqrt{a^2+b^2}}$

직선 사이의 거리