DiffractionGeometry: Add DistFromEwaldSphere function
This commit is contained in:
@@ -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","") {
|
||||
|
||||
Reference in New Issue
Block a user