mirror of
https://github.com/aclist/dztui.git
synced 2026-08-31 12:16:55 +02:00
Compare commits
No commits in common. "a419aad160102359d804ff47e412703074540b0c" and "e73617c2f43a836724a3d0126e43f8b20299a2c3" have entirely different histories.
a419aad160
...
e73617c2f4
@ -7,7 +7,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
// Earth's radius in meters.
|
||||
// Earths radius in meters
|
||||
#define RADIUS ((12756L / 2.0L) * 1000L)
|
||||
|
||||
// PI natural constant
|
||||
@ -68,9 +68,6 @@ 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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user