From a419aad160102359d804ff47e412703074540b0c Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Fri, 31 Oct 2025 10:05:21 +0900 Subject: [PATCH] chore: move comments --- helpers/tools/latlon.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/helpers/tools/latlon.c b/helpers/tools/latlon.c index 3d9492e..a734f31 100644 --- a/helpers/tools/latlon.c +++ b/helpers/tools/latlon.c @@ -7,8 +7,7 @@ #include #include -// Earth's radius in meters. To pretty-print the result for the end-user, it is -// recommended to divide the result by 1,000 and round it. +// Earth's radius in meters. #define RADIUS ((12756L / 2.0L) * 1000L) // PI natural constant @@ -69,6 +68,9 @@ int main(int argc, const char* argv[]) { .longitude = radian_from(atof(argv[4])), }; + // Returns the distance in meters. + // To pretty-print the result in a consumer of this module, it is + // recommended to divide the result by 1,000 and round it. printf("%.1f\n", great_circle_distance(a, b)); return 0;