aboutsummaryrefslogtreecommitdiff
path: root/src/diffraction.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-06-11 15:35:44 -0700
committerThomas White <taw@bitwiz.org.uk>2010-06-11 15:35:44 -0700
commit29e67fab67793ce42b889405cf6e7ef1a32d0bdc (patch)
treee9b66ffb56fae17a109d27e15222eba664515831 /src/diffraction.c
parent1915044fdd7b7de700330450445be9fe5d5b2001 (diff)
Get detector geometry from file
Diffstat (limited to 'src/diffraction.c')
-rw-r--r--src/diffraction.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/diffraction.c b/src/diffraction.c
index 4adf5932..fb512e62 100644
--- a/src/diffraction.c
+++ b/src/diffraction.c
@@ -348,7 +348,7 @@ struct rvec get_q(struct image *image, unsigned int xs, unsigned int ys,
const unsigned int x = xs / sampling;
const unsigned int y = ys / sampling; /* Integer part only */
- p = find_panel(&image->det, x, y);
+ p = find_panel(image->det, x, y);
assert(p != NULL);
rx = ((float)xs - (sampling*p->cx)) / (sampling * p->res);
@@ -377,7 +377,7 @@ double get_tt(struct image *image, unsigned int xs, unsigned int ys)
const unsigned int x = xs;
const unsigned int y = ys; /* Integer part only */
- p = find_panel(&image->det, x, y);
+ p = find_panel(image->det, x, y);
rx = ((float)xs - p->cx) / p->res;
ry = ((float)ys - p->cy) / p->res;