d=\frac{|Ax_{1}+By_{1}+C|}{\pm{\sqrt{A^2+B^2}}}