Move EARTH_RADIUS_KM to haversine.h

This commit is contained in:
Abdelrahman Said 2023-07-02 19:58:47 +01:00
parent d284a7edc8
commit 31d02aff8c
2 changed files with 2 additions and 2 deletions

View File

@ -4,6 +4,8 @@
#include "aliases.h" #include "aliases.h"
#include "point_types.h" #include "point_types.h"
#define EARTH_RADIUS_KM 6371.0
f64 haversine_of_degrees(const PointPair &pair, f64 radius); f64 haversine_of_degrees(const PointPair &pair, f64 radius);
#endif // !HAVERSINE_H #endif // !HAVERSINE_H

View File

@ -6,8 +6,6 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#define EARTH_RADIUS_KM 6371.0
i32 main(i32 argc, char *argv[]) { i32 main(i32 argc, char *argv[]) {
GeneratorArgs args = parse_args(argc, argv); GeneratorArgs args = parse_args(argc, argv);