diff --git a/include/spline/bezier_curve.h b/include/spline/bezier_curve.h index e3212881c3e2800af8312919f4cfafefba9e44fd..03bbe721c7148cf1b79cff4ce525431f2854bf0c 100644 --- a/include/spline/bezier_curve.h +++ b/include/spline/bezier_curve.h @@ -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