IAP GITLAB

Skip to content
Snippets Groups Projects
Commit cc03c5be authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan: Committed by ralfulrich
Browse files

better test of coordinate transformation

parent b96cb401
No related branches found
No related tags found
2 merge requests!234WIP: Initial example of python as script language from C++,!232Conex EM
...@@ -131,7 +131,10 @@ TEST_CASE("transformations between CoordinateSystems") { ...@@ -131,7 +131,10 @@ TEST_CASE("transformations between CoordinateSystems") {
Vector const xPrime{csPrime, 5_m, 0_m, 0_m}; Vector const xPrime{csPrime, 5_m, 0_m, 0_m};
Vector const yPrime{csPrime, 0_m, 5_m, 0_m}; Vector const yPrime{csPrime, 0_m, 5_m, 0_m};
CHECK(zPrime.dot(v).magnitude() > 0); CHECK(xPrime.dot(v).magnitude() == Approx(0).margin(absMargin));
CHECK(yPrime.dot(v).magnitude() == Approx(0).margin(absMargin));
CHECK((zPrime.dot(v) / 1_m).magnitude() == Approx(5 * sqrt(2)));
CHECK(zPrime.GetComponents(rootCS)[1].magnitude() == CHECK(zPrime.GetComponents(rootCS)[1].magnitude() ==
Approx(zPrime.GetComponents(rootCS)[2].magnitude())); Approx(zPrime.GetComponents(rootCS)[2].magnitude()));
CHECK(zPrime.GetComponents(rootCS)[0].magnitude() == Approx(0)); CHECK(zPrime.GetComponents(rootCS)[0].magnitude() == Approx(0));
......
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