# Formulas $$d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}$$ $$\left(\dfrac{x_1+x_2}{2},\dfrac{y_1+y_2}{2}\right)$$ $$m=\dfrac{y_2-y_1}{x_2-x_1}$$