17 Eigen::MatrixXd xs(3, 2);
18 xs << 1, 2, 10, 20, 100, 200;
40 Eigen::Vector2d teval;
43 BOOST_ASSERT(
equals(
ts[0], teval[0]));
44 BOOST_ASSERT(
equals(
ts[1], teval[1]));
46 Eigen::MatrixXd xs(3, 2);
47 xs << 1, 2, 10, 20, 100, 200;
60 Eigen::MatrixXd xs(3, 3);
61 xs << 1, 2, 3, 10, 20, 30, 100, 200, 300;
77 Eigen::MatrixXd xs(3, 3);
78 xs << 1, 2, 3, 10, 20, 30, 100, 200, 300;
95 Eigen::MatrixXd xs(3, 3);
96 xs << 1, 2, 3, 10, 20, 30, 100, 200, 300;
113 Eigen::MatrixXd xs(3, 3);
114 xs << 1, 2, 3, 10, 20, 30, 100, 200, 300;
122 BOOST_TEST(
equals(bspline.
interpolateAt(0.5), Eigen::Vector3d(37.0 / 24, 370.0 / 24, 3700.0 / 24), 1e-13));
123 BOOST_TEST(
equals(bspline.
interpolateAt(2.0), Eigen::Vector3d(8.0 / 3, 80.0 / 3, 800.0 / 3), 1e-13));
131 Eigen::MatrixXd xs(3, 2);
132 xs << 1, 2, 10, 20, 100, 200;
135 BOOST_TEST(
equals(bspline.interpolateAt(256.1), Eigen::Vector3d(1, 10, 100)));
136 BOOST_TEST(
equals(bspline.interpolateAt(256.2), Eigen::Vector3d(2, 20, 200)));
138 BOOST_TEST(
equals(bspline.interpolateAt(256.1 + 0.1), Eigen::Vector3d(2, 20, 200)));
BOOST_AUTO_TEST_CASE(TwoPointsLinear)
BOOST_AUTO_TEST_SUITE(PreProcess)
BOOST_AUTO_TEST_SUITE_END()
#define PRECICE_TEST(...)
Eigen::VectorXd interpolateAt(double t) const
Samples the B-Spline interpolation.
contains the testing framework.
boost::test_tools::predicate_result equals(const std::vector< float > &VectorA, const std::vector< float > &VectorB, float tolerance)
equals to be used in tests. Compares two std::vectors using a given tolerance. Prints both operands o...