diff options
| author | JP Appel <jeanpierre.appel01@gmail.com> | 2024-04-20 03:01:37 -0400 |
|---|---|---|
| committer | JP Appel <jeanpierre.appel01@gmail.com> | 2024-04-20 03:02:29 -0400 |
| commit | 627f4641269d273f3bbf76e679381924115aaf16 (patch) | |
| tree | 2220e884d6b51b84f0102554822f8d2a92230718 /src/util.h | |
| parent | 5cba5bc63de403c779fd4fa762216280d4396444 (diff) | |
moved lattice to complex
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 12 |
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); + |
