방정식
$y=mx+b$
기울기
$m={y_2-y_1\over x_2-x_1}$
두 직선이 평행할 때
기울기가 같고, 상수가 다르다.
두 직선이 수직일 때
기울기를 곱했을때 -1이 나온다.
점과 직선 사이의 거리
$d={|ax_1+by_1+c|\over \sqrt{a^2+b^2}}$
직선 사이의 거리
직선 사이의 거리는, 하나의 직선에서 점을 하나 구하고 이를 이용해서 다른 직선과 거리를 구하면 된다. (x를 0으로 두고 구하면 편하다)