18 using Eigen::Vector2d;
19 BOOST_TEST(
linearize(Vector2d(0.0, 0.0)) == 0);
20 BOOST_TEST(
linearize(Vector2d(1.0, 0.0)) == 1);
21 BOOST_TEST(
linearize(Vector2d(0.0, 1.0)) == 2);
22 BOOST_TEST(
linearize(Vector2d(1.0, 1.0)) == 3);
25 BOOST_TEST(delin0(0) == -1.0);
26 BOOST_TEST(delin0(1) == -1.0);
29 BOOST_TEST(delin1(0) == 1.0);
30 BOOST_TEST(delin1(1) == -1.0);
33 BOOST_TEST(delin2(0) == -1.0);
34 BOOST_TEST(delin2(1) == 1.0);
37 BOOST_TEST(delin3(0) == 1.0);
38 BOOST_TEST(delin3(1) == 1.0);
42 using Eigen::Vector3d;
43 BOOST_TEST(
linearize(Vector3d(0.0, 0.0, 0.0)) == 0);
44 BOOST_TEST(
linearize(Vector3d(1.0, 0.0, 0.0)) == 1);
45 BOOST_TEST(
linearize(Vector3d(0.0, 1.0, 0.0)) == 2);
46 BOOST_TEST(
linearize(Vector3d(1.0, 1.0, 0.0)) == 3);
47 BOOST_TEST(
linearize(Vector3d(0.0, 0.0, 1.0)) == 4);
48 BOOST_TEST(
linearize(Vector3d(1.0, 0.0, 1.0)) == 5);
49 BOOST_TEST(
linearize(Vector3d(0.0, 1.0, 1.0)) == 6);
50 BOOST_TEST(
linearize(Vector3d(1.0, 1.0, 1.0)) == 7);
53 BOOST_TEST(delin0(0) == -1.0);
54 BOOST_TEST(delin0(1) == -1.0);
55 BOOST_TEST(delin0(2) == -1.0);
58 BOOST_TEST(delin1(0) == 1.0);
59 BOOST_TEST(delin1(1) == -1.0);
60 BOOST_TEST(delin1(2) == -1.0);
63 BOOST_TEST(delin2(0) == -1.0);
64 BOOST_TEST(delin2(1) == 1.0);
65 BOOST_TEST(delin2(2) == -1.0);
68 BOOST_TEST(delin3(0) == 1.0);
69 BOOST_TEST(delin3(1) == 1.0);
70 BOOST_TEST(delin3(2) == -1.0);
73 BOOST_TEST(delin4(0) == -1.0);
74 BOOST_TEST(delin4(1) == -1.0);
75 BOOST_TEST(delin4(2) == 1.0);
78 BOOST_TEST(delin5(0) == 1.0);
79 BOOST_TEST(delin5(1) == -1.0);
80 BOOST_TEST(delin5(2) == 1.0);
83 BOOST_TEST(delin6(0) == -1.0);
84 BOOST_TEST(delin6(1) == 1.0);
85 BOOST_TEST(delin6(2) == 1.0);
88 BOOST_TEST(delin7(0) == 1.0);
89 BOOST_TEST(delin7(1) == 1.0);
90 BOOST_TEST(delin7(2) == 1.0);