aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
new file mode 100644
index 0000000..798b73b
--- /dev/null
+++ b/src/util.h
@@ -0,0 +1,12 @@
+#pragma once
+
+#include <complex.h>
+#include <stddef.h>
+
+typedef struct {
+ size_t x;
+ size_t y;
+} vec2;
+
+double complex lattice_to_complex(const size_t index, const vec2 resolution);
+