diff options
author | Thomas White <taw@physics.org> | 2010-07-27 17:28:00 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:26:54 +0100 |
commit | 204ebcabc981a763b6ea0c807103a4531c6efe41 (patch) | |
tree | d0c66cfe1d4c789db8d49db7729a457a7c13fb4a /src/render_hkl.c | |
parent | 599ac05b0681404d596a11f2fb36ed0afd7f3694 (diff) |
render_hkl: Separation does not depend on theta
Diffstat (limited to 'src/render_hkl.c')
-rw-r--r-- | src/render_hkl.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ |