From 29e67fab67793ce42b889405cf6e7ef1a32d0bdc Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 11 Jun 2010 15:35:44 -0700 Subject: Get detector geometry from file --- src/diffraction.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/diffraction.c') 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; -- cgit v1.2.3