diff options
author | Thomas White <taw@physics.org> | 2016-10-19 15:30:29 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2016-10-19 15:30:29 +0200 |
commit | fa07eee6efd51a224a528f0d0fcc23c194c0fec0 (patch) | |
tree | a0a37a275a3aeb8df5d0c31c0337004596fe84f5 | |
parent | c8029395ae91a4660efdae16b72c2e085ebf14d2 (diff) |
Normalise the rotation axis
-rw-r--r-- | libcrystfel/src/taketwo.c | 1 |
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); } |