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

added zero spline

parent abf60b19
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>
private:
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
......
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