Distances on circles, toruses and spheres