Two-theta angles can be negative.
r1983 | ffr | 2007-05-24 15:31:08 +1000 (Thu, 24 May 2007) | 2 lines
This commit is contained in:

committed by
Douglas Clowes

parent
ae647f85fa
commit
64918f0a45
@ -945,7 +945,7 @@ void polar_angle(double angsep, double active_height_mm, double det_rot_rad, dou
|
|||||||
rowsep = active_height_mm/(rownum-1);
|
rowsep = active_height_mm/(rownum-1);
|
||||||
|
|
||||||
for (col=0; col < colnum; col++) {
|
for (col=0; col < colnum; col++) {
|
||||||
alpha = fabs((col_zero - col)*angsep + det_rot_rad);
|
alpha = (col_zero - col)*angsep + det_rot_rad;
|
||||||
G_TwoThetaArr[col]=(float)(alpha*deg_per_rad);
|
G_TwoThetaArr[col]=(float)(alpha*deg_per_rad);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user