Lines Matching defs:cubic
17 CubicPts cubic;
30 const CubicPts& cuPts = failLineCubicTests[iIndex].cubic;
31 SkDCubic cubic;
32 cubic.debugSet(cuPts.fPts);
33 SkASSERT(ValidCubic(cubic));
38 int order1 = reduce1.reduce(cubic, SkReduceOrder::kNo_Quadratics);
41 SkDebugf("[%d] cubic order=%d\n", iIndex, order1);
50 int roots = i.intersect(cubic, line);
103 static int doIntersect(SkIntersections& intersections, const SkDCubic& cubic, const SkDLine& line) {
114 result = intersections.vertical(cubic, top, bottom, line[0].fX, flipped);
123 result = intersections.horizontal(cubic, left, right, line[0].fY, flipped);
125 intersections.intersect(cubic, line);
132 const CubicPts& cuPts = lineCubicTests[iIndex].cubic;
133 SkDCubic cubic;
134 cubic.debugSet(cuPts.fPts);
135 SkASSERT(ValidCubic(cubic));
140 int order1 = reduce1.reduce(cubic, SkReduceOrder::kNo_Quadratics);
143 SkDebugf("[%d] cubic order=%d\n", iIndex, order1);
152 int roots = doIntersect(i, cubic, line);
155 SkDPoint xy1 = cubic.ptAtT(tt1);
166 SkDPoint prev = cubic.ptAtT(cubicT * 2 - 1);
167 SkDPoint sect = cubic.ptAtT(cubicT);
169 SkDebugf("{{%1.9g,%1.9g}, {%1.9g,%1.9g}},\n", sect.fX, sect.fY, cubic[3].fX, cubic[3].fY);
175 sect.distance(i.pt(0)), cubic[3].distance(prevL));
199 const CubicPts& cuPts = lineCubicTests[iIndex].cubic;
200 SkDCubic cubic;
201 cubic.debugSet(cuPts.fPts);
204 i.intersect(cubic, line);