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