Commit 204ebcab authored by Thomas White's avatar Thomas White
Browse files

render_hkl: Separation does not depend on theta

parent 599ac05b
...@@ -388,8 +388,8 @@ static void render_za(UnitCell *cell, ReflItemList *items, ...@@ -388,8 +388,8 @@ static void render_za(UnitCell *cell, ReflItemList *items,
scale_v = ((double)ht-border) / (2.0*max_v); scale_v = ((double)ht-border) / (2.0*max_v);
scale = (scale_u < scale_v) ? scale_u : scale_v; scale = (scale_u < scale_v) ? scale_u : scale_v;
sep_u = (double)scale*as*sin(theta); sep_u = scale*as;
sep_v = (double)scale*as*cos(theta) + scale*bs; sep_v = scale*bs;
/* We are interested in the smaller of the two separations */ /* We are interested in the smaller of the two separations */
max_r = (sep_u < sep_v) ? sep_u : sep_v; max_r = (sep_u < sep_v) ? sep_u : sep_v;
max_r /= 2.0; /* Max radius is half the separation */ max_r /= 2.0; /* Max radius is half the separation */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment