v1.0.0-rc.92

This commit is contained in:
2025-10-23 09:05:11 +02:00
parent 7951e59359
commit fb9462f67b
140 changed files with 203 additions and 138 deletions
+2
View File
@@ -28,6 +28,8 @@ Coord DiffractionGeometry::DetectorToRecip(float x, float y) const {
std::pair<float, float> DiffractionGeometry::RecipToDector(const Coord &recip) const {
auto S_unrotated = recip + GetScatteringVector();
auto S = poni_rot.transpose() * S_unrotated;
if (S.z <= 0)
return {NAN, NAN};
float coeff = det_distance_mm / (S.z * pixel_size_mm);
float x = beam_x_pxl + S.x * coeff;