✨ coord_query
This commit is contained in:
10
A1/euclidean_distance.h
Normal file
10
A1/euclidean_distance.h
Normal 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
|
||||
Reference in New Issue
Block a user