10 #include <utl/CoordinateSystem.h>
11 #include <utl/AxialVector.h>
12 #include <utl/Vector.h>
13 #include <utl/TransformationMatrix.h>
14 #include <utl/AugerUnits.h>
15 #include <tst/Verify.h>
16 #include <utl/Triple.h>
18 #include <cppunit/extensions/HelperMacros.h>
30 CPPUNIT_TEST(testAxialVectorTransformation);
31 CPPUNIT_TEST_SUITE_END();
47 p.TransformTo(CTrans);
49 CPPUNIT_ASSERT(Verify<CloseTo>(
50 p.GetCoordinates(CTrans),
Triple(0,0,0)));
52 CPPUNIT_ASSERT(Verify<CloseTo>(
53 p.GetCoordinates(CS),
Triple(0,0,0)));
58 horizontal.TransformTo(CRot);
59 CPPUNIT_ASSERT(horizontal.GetCoordinateSystem() == CRot);
60 CPPUNIT_ASSERT(Verify<CloseTo>(
61 horizontal.GetCoordinates(CRot),
Triple(0,-1,0)));
62 CPPUNIT_ASSERT(horizontal.GetCoordinateSystem() == CRot);
63 CPPUNIT_ASSERT(Verify<CloseTo>(
64 horizontal.GetCoordinates(CS),
Triple(1,0,0)));
65 CPPUNIT_ASSERT(horizontal.GetCoordinateSystem() == CS);
CoordinateSystemPtr GetCoordinateSystem() const
Get the coordinate system of the current internal representation.
CPPUNIT_TEST_SUITE_REGISTRATION(testAiresShowerFile)
boost::shared_ptr< const CoordinateTransformer > CoordinateSystemPtr
Shared pointer for coordinate systems.
boost::tuple< double, double, double > Triple
Coordinate triple for easy getting or setting of coordinates.
void testAxialVectorTransformation()