aboutsummaryrefslogtreecommitdiff
path: root/src/cell.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-07-30 18:44:04 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:55 +0100
commite09a64256a29547943a432ac5d41819835f8483a (patch)
tree3f4dfca844b770f6959e5d443396606c902c576b /src/cell.h
parent63129a826c8156b1e7cd075e4dc5a23f3641e22a (diff)
Add facetron program for profile fitting and post-refinement
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,