D=\sqrt{\Delta x^2+\Delta y^2}