Files
Compsys-2021-Assignments/A1/euclidean_distance.h
2021-10-06 15:13:42 +02:00

11 lines
243 B
C

#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