v1.0.0-rc.72

This commit is contained in:
2025-09-08 20:28:59 +02:00
parent 6c88c6902e
commit c67337cfe1
275 changed files with 7525 additions and 1039 deletions
+7 -1
View File
@@ -81,7 +81,7 @@ float DiffractionGeometry::ResToPxl(float d_A) const {
float DiffractionGeometry::DistFromEwaldSphere(const Coord &recip) const {
auto S = recip + GetScatteringVector();
return fabsf(S.Length() - (1.0f/wavelength_A));
return S.Length() - (1.0f/wavelength_A);
}
float DiffractionGeometry::CalcAzIntSolidAngleCorr(float q) const {
@@ -232,3 +232,9 @@ std::pair<float, float> DiffractionGeometry::ResPhiToPxl(float d_A, float phi_ra
return RecipToDector(Coord{ k * s2t * cphi,k * s2t * sphi,k * (c2t - 1.0f)});
}
Coord DiffractionGeometry::ProjectToEwaldSphere(const Coord &p0) const {
Coord S0 = GetScatteringVector();
Coord S = p0 + S0;
S = S.Normalize() / wavelength_A;
return S - S0;
}