aboutsummaryrefslogtreecommitdiff
path: root/src/m.c
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2020-08-29 14:47:57 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2020-08-29 14:47:57 +0200
commit4a395cae20c9cd0dcb8437390cf5e470e3c1720b (patch)
tree49d0cb0346db49cacafd3aec7337cecf5f5f0bcc /src/m.c
parent567e0df2434b270411d3356b8e362fc881113335 (diff)
downloadAsciiMap-4a395cae20c9cd0dcb8437390cf5e470e3c1720b.tar.gz
remove unneded
Diffstat (limited to 'src/m.c')
-rw-r--r--src/m.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/m.c b/src/m.c
deleted file mode 100644
index b1401f1..0000000
--- a/src/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) ) );
-}