circular distance function no longer uses elliptical