aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/reax.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-08-29 16:33:21 +0200
committerThomas White <taw@physics.org>2012-10-02 15:02:12 +0200
commit60ec4009e4bc28ab9ed772ee6fcd8c80c533dccd (patch)
treeef006b74144bf61aafbdf7d125c156f9bd73e378 /libcrystfel/src/reax.c
parent2f5af19403e4e13e36d61e85a9dcf77d8c0d82cd (diff)
Uncenter the cell before using it for indexing stuff
Diffstat (limited to 'libcrystfel/src/reax.c')
-rw-r--r--libcrystfel/src/reax.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcrystfel/src/reax.c b/libcrystfel/src/reax.c
index 8bd9f29f..29ea7294 100644
--- a/libcrystfel/src/reax.c
+++ b/libcrystfel/src/reax.c
@@ -745,7 +745,7 @@ static double max_feature_resolution(ImageFeatureList *flist)
}
-static int right_handed(struct rvec a, struct rvec b, struct rvec c)
+static int right_handed_vec(struct rvec a, struct rvec b, struct rvec c)
{
struct rvec aCb;
double aCb_dot_c;
@@ -958,7 +958,7 @@ static void assemble_cells_from_candidates(struct image *image,
bi.u = vj.x; bi.v = vj.y; bi.w = vj.z;
ci.u = vk.x; ci.v = vk.y; ci.w = vk.z;
- if ( !right_handed(ai, bi, ci) ) continue;
+ if ( !right_handed_vec(ai, bi, ci) ) continue;
/* We have three vectors with the right angles */
cnew = cell_new_from_direct_axes(ai, bi, ci);