coord_query

This commit is contained in:
Nikolaj
2021-10-06 15:13:42 +02:00
parent 1ee9e16999
commit f315daa186
5 changed files with 154 additions and 6 deletions

10
A1/euclidean_distance.h Normal file
View File

@@ -0,0 +1,10 @@
#ifndef EUCLIDEAN_DISTANCE_H
#define EUCLIDEAN_DISTANCE_H
#include <math.h>
static double calc_euclidean(double coord_1[2], double coord_2[2]) {
return sqrt(pow((coord_1[0] - coord_2[0]),2) + pow((coord_1[1] - coord_2[1]),2));
}
#endif