From 204ebcabc981a763b6ea0c807103a4531c6efe41 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 27 Jul 2010 17:28:00 +0200 Subject: render_hkl: Separation does not depend on theta --- src/render_hkl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/render_hkl.c') diff --git a/src/render_hkl.c b/src/render_hkl.c index 91ec73d7..734ba3b6 100644 --- a/src/render_hkl.c +++ b/src/render_hkl.c @@ -388,8 +388,8 @@ static void render_za(UnitCell *cell, ReflItemList *items, scale_v = ((double)ht-border) / (2.0*max_v); scale = (scale_u < scale_v) ? scale_u : scale_v; - sep_u = (double)scale*as*sin(theta); - sep_v = (double)scale*as*cos(theta) + scale*bs; + sep_u = scale*as; + sep_v = scale*bs; /* We are interested in the smaller of the two separations */ max_r = (sep_u < sep_v) ? sep_u : sep_v; max_r /= 2.0; /* Max radius is half the separation */ -- cgit v1.2.3