diff options
Diffstat (limited to 'src/renderer.h')
-rw-r--r-- | src/renderer.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/renderer.h b/src/renderer.h new file mode 100644 index 0000000..770a893 --- /dev/null +++ b/src/renderer.h @@ -0,0 +1,31 @@ +/* + * renderer.c + * + * Render Fourier Transform output array into display array + * + * (c) 2006-2007 Thomas White <taw27@cam.ac.uk> + * + * synth2D - Two-Dimensional Crystallographic Fourier Synthesis + * + */ + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#ifndef RENDERER_H +#define RENDERER_H + +typedef struct { + double *re; + double *im; +} ComplexArray; + +extern double renderer_width(int width, int height, double gamma, int nx, int ny); +extern double renderer_height(int width, int height, double gamma, int nx, int ny); +extern ComplexArray renderer_draw(fftw_complex *out, int width, int height, double gamma, int nx, int ny); +extern double renderer_map_x(double x, double y, int width, int height, double gamma, int nx, int ny); +extern double renderer_map_y(double x, double y, int width, int height, double gamma, int nx, int ny); + +#endif /* RENDERER_H */ + |