aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mtx_qhull/list.c4
-rw-r--r--src/mtx_qhull/vectors.c5
-rw-r--r--src/mtx_qhull/zhull.c6
3 files changed, 15 insertions, 0 deletions
diff --git a/src/mtx_qhull/list.c b/src/mtx_qhull/list.c
index 07ce4f2..a464ae9 100644
--- a/src/mtx_qhull/list.c
+++ b/src/mtx_qhull/list.c
@@ -1,4 +1,8 @@
+#include "list.h"
+#include <stdlib.h>
+#include <stdio.h>
+
// memory things:
list_t emptyList(void) {
list_t generated_list;
diff --git a/src/mtx_qhull/vectors.c b/src/mtx_qhull/vectors.c
index 909543e..6cc3dd8 100644
--- a/src/mtx_qhull/vectors.c
+++ b/src/mtx_qhull/vectors.c
@@ -1,3 +1,8 @@
+#include "vectors.h"
+#include <math.h>
+#include <stdlib.h>
+#include <stdio.h>
+
vector_t initVector (float x, float y, float z) {
vector_t vec={x, y, z};
diff --git a/src/mtx_qhull/zhull.c b/src/mtx_qhull/zhull.c
index d13260e..58f636e 100644
--- a/src/mtx_qhull/zhull.c
+++ b/src/mtx_qhull/zhull.c
@@ -1,7 +1,13 @@
+#include "zhull.h"
+
+#include <stdlib.h>
+#include <stdio.h>
+
#define TOL 1e-7
#define MAXIT 1000000
+
vector_t averageListedPoints(const points_t points, const list_t list) {
index_t i;
vector_t m = initVector(0.0f, 0.0f, 0.0f);