X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fsynfigapp%2Fblineconvert.cpp;h=42cb57a369511a8bef21b59b39347ae2fa9433c4;hb=4ba22fb51d97f1ecce04dcc5e40569a4354c1bae;hp=6011353c68f867c023dd0b57bb45d2b01ad51959;hpb=da6e061517bb37037fe79d7a73478f4e738e9aed;p=synfig.git diff --git a/synfig-studio/trunk/src/synfigapp/blineconvert.cpp b/synfig-studio/trunk/src/synfigapp/blineconvert.cpp index 6011353..42cb57a 100644 --- a/synfig-studio/trunk/src/synfigapp/blineconvert.cpp +++ b/synfig-studio/trunk/src/synfigapp/blineconvert.cpp @@ -93,7 +93,7 @@ inline void ThreePointdt(T &df, const T &f1, const T &f2, const T &f3, int bias) // // so only one algorithm needed for left, middle, or right // df = (f1 -f2*2 + f3)*(1/2.0f); // } -// +// // // WARNING -- totally broken // template < class T > // inline void FivePointddt(T &df, const T &f1, const T &f2, const T &f3, int bias) @@ -114,7 +114,7 @@ inline void ThreePointdt(T &df, const T &f1, const T &f2, const T &f3, int bias) // }*/ // //side ones don't work, use 3 point // } -// +// // //implement an arbitrary derivative // //dumb algorithm // template < class T > @@ -122,22 +122,22 @@ inline void ThreePointdt(T &df, const T &f1, const T &f2, const T &f3, int bias) // { // /* // Lj(x) = PI_i!=j (x - xi) / PI_i!=j (xj - xi) -// +// // so Lj'(x) = SUM_k PI_i!=j|k (x - xi) / PI_i!=j (xj - xi) // */ -// +// // unsigned int i,j,k,i0,i1; -// +// // Real Lpj,mult,div,tj; // Real tval = t[indexval]; -// +// // //sum k // for(j=0;j &blinepoint bool done = false; - Real errortol = smoothness*pixelwidth; //???? what the hell should this value be + Real errortol = smoothness*pixelwidth; //???? what should this value be BLinePoint a; synfig::Vector v; @@ -619,16 +619,16 @@ synfigapp::BLineConverter::operator()(std::list &blinepoint // Wondering whether the modification of the deriv vector // using a char* pointer and pointer arithmetric was safe, // I looked it up... - // + // // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2369.pdf tells me: - // + // // 23.2.5 Class template vector [vector] - // + // // [...] The elements of a vector are stored contiguously, // meaning that if v is a vector where T is // some type other than bool, then it obeys the identity // &v[n] == &v[0] + n for all 0 <= n < v.size(). - // + // GetFirstDerivatives(ftemp,0,size,(char*)&deriv[0],sizeof(deriv[0])); //GetSimpleDerivatives(ftemp,0,size,deriv,0,cum_dist);