d=r12+r22−2r1r2cos(ϕ2−ϕ1)d=\sqrt{r_1^2+r_2^2-2r_1r_2\cos\left(\phi_2-\phi_1\right)}d=r12+r22−2r1r2cos(ϕ2−ϕ1)