Skip to content
Snippets Groups Projects
Commit ca4c028b authored by t steve's avatar t steve
Browse files

added zero spline

parent 3b5d644c
No related branches found
No related tags found
No related merge requests found
...@@ -301,7 +301,13 @@ struct bezier_curve : public curve_abc<Time, Numeric, Dim, Safe, Point> ...@@ -301,7 +301,13 @@ struct bezier_curve : public curve_abc<Time, Numeric, Dim, Safe, Point>
private: private:
t_point_t pts_; t_point_t pts_;
//storing bernstein polynoms, even in low dimension public:
static bezier_curve_t zero(const time_t T=1.)
{
std::vector<point_t> ts;
ts.push_back(point_t::Zero());
return bezier_curve_t(ts.begin(), ts.end(),T);
}
}; };
} }
#endif //_CLASS_BEZIERCURVE #endif //_CLASS_BEZIERCURVE
......
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