Lines Matching refs:cubic
15 CubicPts cubic; member
28 const CubicPts& cuPts = failLineCubicTests[iIndex].cubic; in testFail()
29 SkDCubic cubic; in testFail() local
30 cubic.debugSet(cuPts.fPts); in testFail()
31 SkASSERT(ValidCubic(cubic)); in testFail()
36 int order1 = reduce1.reduce(cubic, SkReduceOrder::kNo_Quadratics); in testFail()
48 int roots = i.intersect(cubic, line); in testFail()
101 static int doIntersect(SkIntersections& intersections, const SkDCubic& cubic, const SkDLine& line) { in doIntersect() argument
111 result = intersections.vertical(cubic, top, bottom, line[0].fX, flipped); in doIntersect()
119 result = intersections.horizontal(cubic, left, right, line[0].fY, flipped); in doIntersect()
121 intersections.intersect(cubic, line); in doIntersect()
128 const CubicPts& cuPts = lineCubicTests[iIndex].cubic; in testOne()
129 SkDCubic cubic; in testOne() local
130 cubic.debugSet(cuPts.fPts); in testOne()
131 SkASSERT(ValidCubic(cubic)); in testOne()
136 int order1 = reduce1.reduce(cubic, SkReduceOrder::kNo_Quadratics); in testOne()
148 int roots = doIntersect(i, cubic, line); in testOne()
151 SkDPoint xy1 = cubic.ptAtT(tt1); in testOne()
162 SkDPoint prev = cubic.ptAtT(cubicT * 2 - 1); in testOne()
163 SkDPoint sect = cubic.ptAtT(cubicT); in testOne()
165 SkDebugf("{{%1.9g,%1.9g}, {%1.9g,%1.9g}},\n", sect.fX, sect.fY, cubic[3].fX, cubic[3].fY); in testOne()
171 sect.distance(i.pt(0)), cubic[3].distance(prevL)); in testOne()
195 const CubicPts& cuPts = lineCubicTests[iIndex].cubic; in DEF_TEST()
196 SkDCubic cubic; in DEF_TEST() local
197 cubic.debugSet(cuPts.fPts); in DEF_TEST()
200 i.intersect(cubic, line); in DEF_TEST()