Distances in polar coordinate