X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fcurve_helper.cpp;h=b9b22e8bf675b0e71671ded4b4dc53d72b0cbdd0;hb=7a8e75cef2a63f9e7e0b57807afb239279053280;hp=b066d9d27963b17bd3842678d6b931511b8acbee;hpb=bbf05c1d5f53f61ec5b033c5c305a497d8389d46;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/curve_helper.cpp b/synfig-core/trunk/src/synfig/curve_helper.cpp index b066d9d..b9b22e8 100644 --- a/synfig-core/trunk/src/synfig/curve_helper.cpp +++ b/synfig-core/trunk/src/synfig/curve_helper.cpp @@ -352,7 +352,7 @@ int intersect(const BezHull &bh, const Point &p, const Vector &v) { float mint = 0, maxt = 1e20; - //polygon cliping + //polygon clipping Vector n; Vector::value_type nv; @@ -530,7 +530,7 @@ static int recurse_intersect(const CIntersect::SCurve &b, const Point &p1, int d for(int i = 0; i < 3; ++i) { - //intersect line segmentsssss + //intersect line segments //solve for the y_value Vector v = b.b[i+1] - b.b[i]; @@ -590,7 +590,7 @@ void CIntersect::recurse_intersect(const SCurve &left, const SCurve &right, int { for(int j = 0; j < 3; ++j) { - //intersect line segmentsssss + //intersect line segments if(intersect_line_segments(left.b[i],left.b[i+1],t,right.b[j],right.b[j+1],s)) { //We got one Jimmy @@ -612,7 +612,7 @@ void CIntersect::recurse_intersect(const SCurve &left, const SCurve &right, int left.Split(l1,r1); //subdivide left right.Split(l2,r2); //subdivide right - //Test each cantidate against eachother + //Test each candidate against each other recurse_intersect(l1,l2); recurse_intersect(l1,r2); recurse_intersect(r1,l2); @@ -625,7 +625,7 @@ bool CIntersect::operator()(const bezier &c1, const bezier &c2) { times.clear(); - //need to subdivide and check recursive bounding regions against eachother + //need to subdivide and check recursive bounding regions against each other //so track a list of dirty curves and compare compare compare