aboutsummaryrefslogtreecommitdiff
path: root/src/diffraction.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-02-08 12:08:55 +0100
committerThomas White <taw@physics.org>2010-02-08 12:08:55 +0100
commit5c2b33d79e64d42d8be2a274b20796c86418c688 (patch)
tree5268147e6679e8e8f5912ad6d79c54dcdc8fd70d /src/diffraction.c
parent8e290108689f653a39dcd8769d7556652aee7dcd (diff)
Don't forget to rotate the q vectors!
Diffstat (limited to 'src/diffraction.c')
-rw-r--r--src/diffraction.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diffraction.c b/src/diffraction.c
index bc3e685c..f262c9d1 100644
--- a/src/diffraction.c
+++ b/src/diffraction.c
@@ -173,7 +173,7 @@ struct rvec get_q(struct image *image, unsigned int xs, unsigned int ys,
q.v = k * sin(twothetay);
q.w = k - k * cos(twotheta);
- return q;
+ return quat_rot(q, image->orientation);
}