Commit ca4c028b authored by t steve's avatar t steve

added zero spline

parent 3b5d644c
......@@ -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
......
Markdown is supported
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