From f15b53eea4b7054826f79836e207751e86ba1cec Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Sat, 4 May 2019 00:57:44 +0200 Subject: Reorganised folder structure --- m.c | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 m.c (limited to 'm.c') diff --git a/m.c b/m.c deleted file mode 100644 index b1401f1..0000000 --- a/m.c +++ /dev/null @@ -1,22 +0,0 @@ -#include "m.h" - -uint8_t avg(int argc, uint8_t *argv) -{ - uint8_t ret = 0; - uint64_t sum = 0; - - for(int i = 0; i < argc; i++) - sum += (uint64_t)argv[i]; - - ret = (char)(sum / argc); - - return ret; -}//avg - - -float distance(uint8_t _1[3], uint8_t _2[3]) -{ - return fabs( sqrt( pow((double)_2[0] - (double)_1[0], 2) + - pow((double)_2[1] - (double)_1[1], 2) + - pow((double)_2[2] - (double)_1[2], 2) ) ); -} -- cgit v1.2.3