aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/cell.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-08-31 16:20:21 +0200
committerThomas White <taw@physics.org>2012-10-02 15:02:12 +0200
commit4b3ffa51ec169406185a76016a29833bc9637264 (patch)
treebf40ef935ec0dda9da90e2f72e52413b56023af6 /libcrystfel/src/cell.h
parent60ec4009e4bc28ab9ed772ee6fcd8c80c533dccd (diff)
WIP on cell transformations
Diffstat (limited to 'libcrystfel/src/cell.h')
-rw-r--r--libcrystfel/src/cell.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/libcrystfel/src/cell.h b/libcrystfel/src/cell.h
index 4e90a8ad..625884e1 100644
--- a/libcrystfel/src/cell.h
+++ b/libcrystfel/src/cell.h
@@ -68,6 +68,15 @@ typedef enum
**/
typedef struct _unitcell UnitCell;
+
+/**
+ * UnitCellTransformation:
+ *
+ * This opaque data structure represents a tranformation of a unit cell, such
+ * as a rotation or a centering operation.
+ **/
+typedef struct _unitcelltransformation UnitCellTransformation;
+
extern UnitCell *cell_new(void);
extern UnitCell *cell_new_from_cell(UnitCell *orig);
extern void cell_free(UnitCell *cell);
@@ -127,4 +136,10 @@ extern void cell_set_unique_axis(UnitCell *cell, char unique_axis);
extern const char *cell_rep(UnitCell *cell);
+extern UnitCell *cell_transform(UnitCell *cell, UnitCellTransformation *t);
+extern UnitCell *cell_transform_inverse(UnitCell *cell,
+ UnitCellTransformation *t);
+
+extern void cell_transformation_print(UnitCellTransformation *t);
+
#endif /* CELL_H */