v1.0.0-rc.92
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user