Lines Matching defs:to
22 * in the file COPYING-LGPL-2.1; if not, write to the Free Software
27 * The contents of this file are subject to the Mozilla Public License
45 /* This is inelegant, as it uses several extra stores. I think there might be a way to
48 // initialize return vector with zeroes, such that we only need to replace the non-zero derivs
232 Bezier portion(Bezier const &a, double from, double to)
237 if (from > to) {
238 std::swap(from, to);
244 if (to == 1) {
247 casteljau_subdivision<double>(to, &ret.c_[0], &ret.c_[0], NULL, ret.order());
251 if (to == 1) break;
252 casteljau_subdivision<double>((to - from) / (1 - from), &ret.c_[0], &ret.c_[0], NULL, ret.order());
253 // to protect against numerical inaccuracy in the above expression, we manually set
254 // the last coefficient to a value evaluated directly from the original polynomial
255 ret.c_[ret.order()] = a.valueAt(to);