Lines Matching defs:cubic
54 static double binary_search(const SkDCubic& cubic, double step, const SkDPoint& pt, double t,
59 SkDPoint cubicAtT = cubic.ptAtT(t);
67 SkDebugf("binary search failed: step=%1.9g cubic=", firstStep);
68 cubic.dump();
76 SkDPoint lessPt = cubic.ptAtT(t - lastStep);
85 SkDPoint morePt = cubic.ptAtT(t + lastStep);
155 SkDCubic cubic;
156 cubic.debugSet(cuPts.fPts);
157 SkDPoint pt = cubic.ptAtT(t);
159 // see if the line / cubic has a fun range of roots
161 SkDCubic::Coefficients(&cubic[0].fY, &A, &B, &C, &D);
173 SkDPoint calcPt = cubic.ptAtT(t);
221 double newT = binary_search(cubic, step, pt, t, &iters);
232 cubic.dump();
254 SkDCubic cubic;
255 cubic.debugSet(c.fPts);
258 SkDCubic::Coefficients(&cubic[0].fY, &A, &B, &C, &D);
266 SkDPoint calcPt = cubic.ptAtT(t);
269 double newT = binary_search(cubic, 0.1, pt, t, &iters);