From 627f4641269d273f3bbf76e679381924115aaf16 Mon Sep 17 00:00:00 2001 From: JP Appel Date: Sat, 20 Apr 2024 03:01:37 -0400 Subject: moved lattice to complex --- src/util.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/util.h (limited to 'src/util.h') 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 +#include + +typedef struct { + size_t x; + size_t y; +} vec2; + +double complex lattice_to_complex(const size_t index, const vec2 resolution); + -- cgit v1.2.3