aboutsummaryrefslogtreecommitdiff
path: root/src/detector.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-11-15 16:17:02 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:05 +0100
commit1b4fa114decd9c36324feed00296cb40088a9062 (patch)
tree2d313458c29c6f4ac5de5513639020558eaaa556 /src/detector.c
parentfcde5d4f2fd95845402b86c3838f15b6632a8071 (diff)
Zap quats
The "orientation" quaternion should not rotate the Ewald sphere, but the crystal. This cleans things up a little, removing "orientation" from "struct image".
Diffstat (limited to 'src/detector.c')
-rw-r--r--src/detector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/detector.c b/src/detector.c
index fa3208a6..da423235 100644
--- a/src/detector.c
+++ b/src/detector.c
@@ -59,7 +59,7 @@ struct rvec get_q(struct image *image, double xs, double ys,
q.v = k * sin(twotheta)*sin(az);
q.w = k * (cos(twotheta) - 1.0);
- return quat_rot(q, image->orientation);
+ return q;
}