distance from mars to earth as curve