diff --git a/src/2geom/piecewise.h b/src/2geom/piecewise.h
index a5be42587c0be602eb02c28677769e14943bfed7..62185b472267259fd49041805961b1c593ded703 100644 (file)
--- a/src/2geom/piecewise.h
+++ b/src/2geom/piecewise.h
* \begin{array}{cc}
* s_1,& t <= c_2 \\
* s_2,& c_2 <= t <= c_3\\
- * \ldots
+ * \ldots \\
* s_n,& c_n <= t
* \end{array}\right.
* \f]
inline output_type lastValue() const {
return valueAt(cuts.back());
}
+
+ /**
+ * The size of the returned vector equals n_derivs+1.
+ */
std::vector<output_type> valueAndDerivatives(double t, unsigned n_derivs) const {
unsigned n = segN(t);
std::vector<output_type> ret, val = segs[n].valueAndDerivatives(segT(t, n), n_derivs);
}
return ret;
}
+
//TODO: maybe it is not a good idea to have this?
Piecewise<T> operator()(SBasis f);
Piecewise<T> operator()(Piecewise<SBasis>f);
return ret;
}
-
/**
* Interpolates between a and b.
* \return a if t = 0, b if t = 1, or an interpolation between a and b for t in [0,1]
+ * \relates Piecewise
*/
template<typename T>
Piecewise<T> lerp(double t, Piecewise<T> const &a, Piecewise<T> b) {
fill-column:99
End:
*/
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :