Commit 5822b3b6 by JasonChmn Committed by Pierre Fernbach

### [Polynomial] Fix problem with dynamic size for points / [main] Create test for...

`[Polynomial] Fix problem with dynamic size for points / [main] Create test for curve_abc and curves in dynamic`
parent ed8fa3cc
 ... ... @@ -166,7 +166,7 @@ struct polynomial : public curve_abc } time_t const dt (t-t_min_); time_t cdt(1); point_t currentPoint_ = point_t::Zero(); point_t currentPoint_ = point_t::Zero(dim_); for(int i = (int)(order); i < (int)(order_+1); ++i, cdt*=dt) { currentPoint_ += cdt *coefficients_.col(i) * fact(i, order); ... ...
 ... ... @@ -1308,6 +1308,84 @@ void piecewiseCurveTest(bool& error) } void curveAbcDimDynamicTest(bool& error) { typedef curve_abc curve_abc_test_t; typedef polynomial polynomial_test_t; //typedef exact_cubic > exact_cubic_test_t; typedef bezier_curve bezier_curve_test_t; typedef cubic_hermite_spline cubic_hermite_spline_test_t; curve_abc_test_t * pt_curve_abc; // POLYNOMIAL point_t a(1,1,1); point_t b(2,2,2); t_point_t vec; vec.push_back(a); vec.push_back(b); polynomial_test_t pol(vec.begin(), vec.end(), 0, 1); try { std::cout<<"pol : "<(pol); try { std::cout<<"bc : "<(pol); try { std::cout<<"chs : "<
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment