Skip to content
Snippets Groups Projects
Commit bf5df9af authored by Oliver Sander's avatar Oliver Sander Committed by sander@FU-BERLIN.DE
Browse files

Some refactoring

[[Imported from SVN: r8000]]
parent 297cc8b2
No related branches found
No related tags found
No related merge requests found
......@@ -356,15 +356,13 @@ void testUnitVector3d()
}
template <int domainDim>
void testRotation()
template <class TargetSpace, int domainDim>
void test()
{
std::cout << " --- Testing Rotation<3>, domain dimension: " << domainDim << " ---" << std::endl;
typedef Rotation<3,double> TargetSpace;
std::cout << " --- Testing " << className<TargetSpace>() << ", domain dimension: " << domainDim << " ---" << std::endl;
std::vector<Rotation<3,double> > testPoints;
ValueFactory<Rotation<3,double> >::get(testPoints);
std::vector<TargetSpace> testPoints;
ValueFactory<TargetSpace>::get(testPoints);
int nTestPoints = testPoints.size();
......@@ -403,6 +401,6 @@ int main()
testUnitVector2d<2>();
testUnitVector3d<2>();
testRotation<1>();
testRotation<2>();
test<Rotation<3,double>,1>();
test<Rotation<3,double>,2>();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment