aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/util.h
diff options
context:
space:
mode:
authorJP Appel <jeanpierre.appel01@gmail.com>2024-04-20 03:01:37 -0400
committerJP Appel <jeanpierre.appel01@gmail.com>2024-04-20 03:02:29 -0400
commit627f4641269d273f3bbf76e679381924115aaf16 (patch)
tree2220e884d6b51b84f0102554822f8d2a92230718 /src/util.h
parent5cba5bc63de403c779fd4fa762216280d4396444 (diff)
moved lattice to complex
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);
+