aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/cell-utils.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-10-23 14:18:40 +0200
committerThomas White <taw@physics.org>2019-03-11 16:49:36 +0100
commit481c13eac53cce18272ff3ef3e4994170c7d2e62 (patch)
treeb90d9fcda17a07d51fd919be4fd88a090da7e783 /libcrystfel/src/cell-utils.h
parent483593eab5edf7be2f769a8d2db9ac0f38329c8a (diff)
Change horribly confusing names of unit cell comparison functions
cells_are_similar -> compare_cell_parameters_and_orientation compare_cells -> compare_reindexed_cell_parameters_and_orientation cell_tool.c:cells_the_same -> cellutils.c:compare_cell_parameters All comparisons now done in real space, checking that centering is the same, and without uncentering anything.
Diffstat (limited to 'libcrystfel/src/cell-utils.h')
-rw-r--r--libcrystfel/src/cell-utils.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/libcrystfel/src/cell-utils.h b/libcrystfel/src/cell-utils.h
index d0af717a..cf736e4a 100644
--- a/libcrystfel/src/cell-utils.h
+++ b/libcrystfel/src/cell-utils.h
@@ -80,8 +80,20 @@ extern int forbidden_reflection(UnitCell *cell,
extern double cell_get_volume(UnitCell *cell);
-extern int compare_cells(UnitCell *a, UnitCell *b, double ltl, double atl,
- IntegerMatrix **pmb);
+extern int compare_cell_parameters(UnitCell *cell1, UnitCell *cell2,
+ float ltl, float atl);
+
+
+extern int compare_cell_parameters_and_orientation(UnitCell *cell1,
+ UnitCell *cell2,
+ const double ltl,
+ const double atl);
+
+extern int compare_reindexed_cell_parameters_and_orientation(UnitCell *a,
+ UnitCell *b,
+ double ltl,
+ double atl,
+ IntegerMatrix **pmb);
#ifdef __cplusplus
}