diff options
author | sanine <sanine.not@pm.me> | 2022-01-26 02:23:20 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-01-26 02:23:20 -0600 |
commit | 672819693ddf1d203c304697b63f44059cff09b6 (patch) | |
tree | 258319d46efa5297162bc1179b5c9c34bd3c23c7 /experimental/tectonics/util.h | |
parent | c5fae17327c585ec09ad01066e3f24a4e7be1fed (diff) |
refactor: move quadtree and util functions into separate headers and clean up names
Diffstat (limited to 'experimental/tectonics/util.h')
-rw-r--r-- | experimental/tectonics/util.h | 11 |
1 files changed, 11 insertions, 0 deletions
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 <cairo.h> +#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 |