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