aboutsummaryrefslogtreecommitdiff
path: root/src/cell.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cell.h')
-rw-r--r--src/cell.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/cell.h b/src/cell.h
index ab67a594..113e6512 100644
--- a/src/cell.h
+++ b/src/cell.h
@@ -16,6 +16,14 @@
#include <config.h>
#endif
+/* A 3D vector in reciprocal space */
+struct rvec
+{
+ double u;
+ double v;
+ double w;
+};
+
typedef struct _unitcell UnitCell;
extern UnitCell *cell_new(void);
@@ -25,6 +33,9 @@ extern UnitCell *cell_new_from_cell(UnitCell *orig);
extern UnitCell *cell_new_from_parameters(double a, double b, double c,
double alpha, double beta, double gamma);
+extern UnitCell *cell_new_from_axes(struct rvec as, struct rvec bs,
+ struct rvec cs);
+
extern void cell_set_cartesian(UnitCell *cell,
double ax, double ay, double az,
double bx, double by, double bz,