File indexing completed on 2025-01-18 09:12:42
0001
0002
0003
0004
0005
0006
0007
0008
0009 #include <boost/test/unit_test.hpp>
0010
0011 #include "Acts/Definitions/Algebra.hpp"
0012 #include "Acts/Geometry/VolumeBounds.hpp"
0013
0014 namespace Acts::Test {
0015
0016 BOOST_AUTO_TEST_SUITE(Volumes)
0017
0018 BOOST_AUTO_TEST_CASE(VolumeBoundsTest) {
0019
0020
0021
0022
0023
0024 Vector3 xaxis(1., 0., 0.);
0025 Vector3 yaxis(0., 1., 0.);
0026 Vector3 zaxis(0., 0., 1.);
0027
0028 auto rotXY = s_planeXY.rotation();
0029 BOOST_CHECK(rotXY.col(0).isApprox(xaxis));
0030 BOOST_CHECK(rotXY.col(1).isApprox(yaxis));
0031 BOOST_CHECK(rotXY.col(2).isApprox(zaxis));
0032
0033 auto rotYZ = s_planeYZ.rotation();
0034 BOOST_CHECK(rotYZ.col(0).isApprox(yaxis));
0035 BOOST_CHECK(rotYZ.col(1).isApprox(zaxis));
0036 BOOST_CHECK(rotYZ.col(2).isApprox(xaxis));
0037
0038 auto rotZX = s_planeZX.rotation();
0039 BOOST_CHECK(rotZX.col(0).isApprox(zaxis));
0040 BOOST_CHECK(rotZX.col(1).isApprox(xaxis));
0041 BOOST_CHECK(rotZX.col(2).isApprox(yaxis));
0042 }
0043
0044 BOOST_AUTO_TEST_SUITE_END()
0045
0046 }