From 244303f588f9c4797836e062d0576d85a027ab2a Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 4 Mar 2009 17:05:42 +0000 Subject: Initial import --- crystal.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 crystal.h (limited to 'crystal.h') diff --git a/crystal.h b/crystal.h new file mode 100644 index 0000000..5c38da8 --- /dev/null +++ b/crystal.h @@ -0,0 +1,33 @@ +/* + * crystal.h + * + * Crystallographic stuff + * + * (c) 2009 Thomas White + * + * Triclinator - solve nasty triclinic unit cells + * + */ + +#ifndef CRYSTAL_H +#define CRYSTAL_H + +#define RAD2DEG(a) ((a)*180/M_PI) +#define DEG2RAD(a) ((a)*M_PI/180) + +#include "util.h" + +typedef struct +{ + double a; + double b; + double c; + double al; + double be; + double ga; +} Cell; + +/* Return what the measurement 'val' would have been if the cell were 'cell' */ +extern double crystal_calc(MVal val, Cell cell); + +#endif /* CRYSTAL_H */ -- cgit v1.2.3