From 672819693ddf1d203c304697b63f44059cff09b6 Mon Sep 17 00:00:00 2001 From: sanine Date: Wed, 26 Jan 2022 02:23:20 -0600 Subject: refactor: move quadtree and util functions into separate headers and clean up names --- experimental/tectonics/util.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 experimental/tectonics/util.h (limited to 'experimental/tectonics/util.h') diff --git a/experimental/tectonics/util.h b/experimental/tectonics/util.h new file mode 100644 index 0000000..1a5a505 --- /dev/null +++ b/experimental/tectonics/util.h @@ -0,0 +1,11 @@ +#ifndef UTIL_H +#define UTIL_H + +#include +#include "geometry.h" + +void get_cairo_size(cairo_t *cr, int *width, int *height); +double rand01(); +double distance(struct point_t p1, struct point_t p2); + +#endif -- cgit v1.2.1