DiffractionGeometry: Add DistFromEwaldSphere function

This commit is contained in:
2023-06-19 20:06:11 +02:00
parent 945a3b9271
commit ca15556964
2 changed files with 8 additions and 0 deletions
+3
View File
@@ -15,6 +15,7 @@ TEST_CASE("RecipToDetector_1", "[LinearAlgebra][Coord]") {
REQUIRE(proj_x == Approx(pos_x));
REQUIRE(proj_y == Approx(pos_y));
REQUIRE((recip - DetectorToRecip(x, proj_x, proj_y)).Length() < 0.00000001f);
REQUIRE(DistFromEwaldSphere(x, recip) < 4e-4);
}
TEST_CASE("RecipToDetector_2", "[LinearAlgebra][Coord]") {
@@ -27,6 +28,7 @@ TEST_CASE("RecipToDetector_2", "[LinearAlgebra][Coord]") {
REQUIRE(proj_x == Approx(pos_x));
REQUIRE(proj_y == Approx(pos_y));
REQUIRE((recip - DetectorToRecip(x, proj_x, proj_y)).Length() < 0.00000001f);
REQUIRE(DistFromEwaldSphere(x, recip) < 4e-4);
}
TEST_CASE("RecipToDetector_3", "[LinearAlgebra][Coord]") {
@@ -39,6 +41,7 @@ TEST_CASE("RecipToDetector_3", "[LinearAlgebra][Coord]") {
REQUIRE(proj_x == Approx(pos_x));
REQUIRE(proj_y == Approx(pos_y));
REQUIRE((recip - DetectorToRecip(x, proj_x, proj_y)).Length() < 0.00000001f);
REQUIRE(DistFromEwaldSphere(x, recip) < 4e-4);
}
TEST_CASE("Phi","") {