mirror of
https://github.com/aclist/dztui.git
synced 2026-08-25 17:32:36 +02:00
chore: move comments
This commit is contained in:
parent
21d4601e41
commit
a419aad160
@ -7,8 +7,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
// Earth's radius in meters. To pretty-print the result for the end-user, it is
|
// Earth's radius in meters.
|
||||||
// recommended to divide the result by 1,000 and round it.
|
|
||||||
#define RADIUS ((12756L / 2.0L) * 1000L)
|
#define RADIUS ((12756L / 2.0L) * 1000L)
|
||||||
|
|
||||||
// PI natural constant
|
// PI natural constant
|
||||||
@ -69,6 +68,9 @@ int main(int argc, const char* argv[]) {
|
|||||||
.longitude = radian_from(atof(argv[4])),
|
.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));
|
printf("%.1f\n", great_circle_distance(a, b));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user