aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2016-10-19 15:30:29 +0200
committerThomas White <taw@physics.org>2016-10-19 15:30:29 +0200
commitfa07eee6efd51a224a528f0d0fcc23c194c0fec0 (patch)
treea0a37a275a3aeb8df5d0c31c0337004596fe84f5 /libcrystfel
parentc8029395ae91a4660efdae16b72c2e085ebf14d2 (diff)
Normalise the rotation axis
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/taketwo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcrystfel/src/taketwo.c b/libcrystfel/src/taketwo.c
index 2ba72c91..0e999a0e 100644
--- a/libcrystfel/src/taketwo.c
+++ b/libcrystfel/src/taketwo.c
@@ -285,6 +285,7 @@ static gsl_matrix *rotation_between_vectors(struct rvec a, struct rvec b)
{
double th = rvec_angle(a, b);
struct rvec c = rvec_cross(a, b);
+ normalise_rvec(&c);
return rotation_around_axis(c, th);
}