circleToCords function