diff --git a/Tests/UnitTests/Core/Sample/FormFactorBasicTest.cpp b/Tests/UnitTests/Core/Sample/FormFactorBasicTest.cpp index 98dcef39362cf0b0626a52d543b5f5a0b01aa918..62a06c26d6006a3650d34ad9ebdb6bcd82a13738 100644 --- a/Tests/UnitTests/Core/Sample/FormFactorBasicTest.cpp +++ b/Tests/UnitTests/Core/Sample/FormFactorBasicTest.cpp @@ -236,6 +236,12 @@ TEST_F(FormFactorBasicTest, Cylinder) EXPECT_NEAR(-height, particle.bottomZ(RotationY(180*Units::degree)), 1e-13); EXPECT_NEAR(0, particle.topZ (RotationY(180*Units::degree)), 1e-13); + for (double gamma: { 1.123, -2.34, 7.5, -9. }) + // 7.5deg is worst case for 24-vertex circle + EXPECT_NEAR(-radius, particle.bottomZ( + RotationEuler(0, 90*Units::degree, gamma*Units::degree)), + 3e-2); // TODO decrease epsilon after replacement of vertex-based approximation + test_ff(&particle); }