d(A,B)=\sqrt{(x_A-x_B)^2+(y_A-y_B)^2}