Lines Matching defs:order
44 inline SBasis bezier_to_sbasis(Coord const *handles, unsigned order) {
45 if(order == 0)
47 else if(order == 1)
50 return multiply(Linear(1, 0), bezier_to_sbasis(handles, order-1)) +
51 multiply(Linear(0, 1), bezier_to_sbasis(handles+1, order-1));
56 inline D2<SBasis> handles_to_sbasis(T const &handles, unsigned order)
58 double v[2][order+1];
59 for(unsigned i = 0; i <= order; i++)
62 return D2<SBasis>(bezier_to_sbasis(v[0], order),
63 bezier_to_sbasis(v[1], order));
70 D2<SBasis> handles_to_sbasis(T const& handles, unsigned order)
73 size_t sz = order + 1;