21 bool test_result =
true;
30 auto xnew = t1.apply(xold);
31 auto xnew_check =
util::Point( xold.d_x + 1., xold.d_y + 1., xold.d_z);
33 std::cout <<
"xold = (" << xold.d_x <<
", " << xold.d_y <<
", " << xold.d_z
34 <<
"), xnew = (" << xnew.d_x <<
", " << xnew.d_y <<
", " << xnew.d_z
35 <<
"), distance = " << xnew_check.dist(xnew) <<
"\n";
36 if (xnew_check.dist(xnew) > 1.0E-8) {
37 std::cout <<
"Error\n";
48 xnew = t2.apply(xold);
50 xold.d_x * std::cos(theta) - xold.d_y * std::sin(theta),
51 xold.d_x * std::sin(theta) + xold.d_y * std::cos(theta), 0.);
53 std::cout <<
"xold = (" << xold.d_x <<
", " << xold.d_y <<
", " << xold.d_z
54 <<
"), xnew = (" << xnew.d_x <<
", " << xnew.d_y <<
", " << xnew.d_z
55 <<
"), distance = " << xnew_check.dist(xnew) <<
"\n";
56 if (xnew_check.dist(xnew) > 1.0E-8) {
57 std::cout <<
"Error\n";
69 xnew = t3.apply(xold);
71 scale * xold.d_x * std::cos(theta) - scale * xold.d_y * std::sin(theta),
72 scale * xold.d_x * std::sin(theta) + scale * xold.d_y * std::cos(theta), 0.);
74 std::cout <<
"xold = (" << xold.d_x <<
", " << xold.d_y <<
", " << xold.d_z
75 <<
"), xnew = (" << xnew.d_x <<
", " << xnew.d_y <<
", " << xnew.d_z
76 <<
"), distance = " << xnew_check.dist(xnew) <<
"\n";
77 if (xnew_check.dist(xnew) > 1.0E-8) {
78 std::cout <<
"Error\n";