/external/skia/src/pathops/ |
D | SkDCubicLineIntersection.cpp | 95 : fCubic(c) in LineCubicIntersections() 110 SkDPoint cubicMidPt = fCubic.ptAtT(cubicMidT); in checkCoincident() 136 c[n].fX = (fCubic[n].fY - fLine[0].fY) * adj - (fCubic[n].fX - fLine[0].fX) * opp; in intersectRay() 145 c[n].fY = (fCubic[n].fY - fLine[0].fY) * opp in intersectRay() 146 + (fCubic[n].fX - fLine[0].fX) * adj; in intersectRay() 199 int count = HorizontalIntersect(fCubic, axisIntercept, roots); in horizontalIntersect() 202 SkDPoint pt = { fCubic.ptAtT(cubicT).fX, axisIntercept }; in horizontalIntersect() 226 SkDPoint cubicMidPt = fCubic.ptAtT(cubicMidT); in uniqueAnswer() 232 SkDPoint cPt = fCubic.ptAtT(cubicT); in uniqueAnswer() 262 int count = VerticalIntersect(fCubic, axisIntercept, roots); in verticalIntersect() [all …]
|
D | SkPathOpsCubic.h | 198 SkDCubic fCubic; 203 : fCubic(c) { in SkTCubic() 208 const SkDPoint& operator[](int n) const override { return fCubic[n]; } 209 SkDPoint& operator[](int n) override { return fCubic[n]; } 211 bool collapsed() const override { return fCubic.collapsed(); } in collapsed() 212 bool controlsInside() const override { return fCubic.controlsInside(); } in controlsInside() 213 void debugInit() override { return fCubic.debugInit(); } in debugInit() 215 void dumpID(int id) const override { return fCubic.dumpID(id); } in dumpID() 217 SkDVector dxdyAtT(double t) const override { return fCubic.dxdyAtT(t); } in dxdyAtT() 219 SkOpGlobalState* globalState() const override { return fCubic.globalState(); } in globalState() [all …]
|
D | SkPathOpsCurve.cpp | 20 double minX = fCubic.fPts[0].fX; in nearPoint() 23 minX = std::min(minX, fCubic.fPts[index].fX); in nearPoint() 24 maxX = std::max(maxX, fCubic.fPts[index].fX); in nearPoint() 29 double minY = fCubic.fPts[0].fY; in nearPoint() 32 minY = std::min(minY, fCubic.fPts[index].fY); in nearPoint() 33 maxY = std::max(maxY, fCubic.fPts[index].fY); in nearPoint() 75 dRect.setBounds(dCurve, fCubic, tStart, tEnd); in setCubicBounds()
|
D | SkReduceOrder.cpp | 234 return coincident_line(cubic, fCubic); in reduce() 236 return vertical_line(cubic, fCubic); in reduce() 239 return horizontal_line(cubic, fCubic); in reduce() 241 int result = check_linear(cubic, minX, maxX, minY, maxY, fCubic); in reduce() 246 && (result = check_quadratic(cubic, fCubic))) { in reduce() 249 fCubic = cubic; in reduce()
|
D | SkPathOpsCurve.h | 60 SkDCubic fCubic; member 66 return fCubic[n]; 71 return fCubic[n]; 153 return c.fCubic.ptAtT(t); in ddcubic_xy_at_t() 233 return c.fCubic.dxdyAtT(t); in ddcubic_dxdy_at_t() 355 i->intersectRay(c.fCubic, ray); in dcubic_intersect_ray()
|
D | SkReduceOrder.h | 34 SkDCubic fCubic; member
|
D | SkOpSegment.cpp | 194 path->cubicTo(curvePart.fCurve.fCubic[1].asSkPoint(), in addCurveTo() 195 curvePart.fCurve.fCubic[2].asSkPoint(), end->ptT()); in addCurveTo() 1630 edge->fCubic[0].set(startPtT.fPt); in subDivide() 1632 edge->fCubic[points].set(endPtT.fPt); in subDivide() 1651 edge->fCubic[1].set(fPts[1]); in subDivide() 1652 edge->fCubic[2].set(fPts[2]); in subDivide() 1655 edge->fCubic[1].set(fPts[2]); in subDivide() 1656 edge->fCubic[2].set(fPts[1]); in subDivide() 1666 SkDCubic::SubDivide(fPts, edge->fCubic[0], edge->fCubic[3], startT, endT, &edge->fCubic[1]); in subDivide()
|
D | SkPathOpsCubic.cpp | 750 return i->intersectRay(fCubic, line); in intersectRay() 754 return quad.hullIntersects(fCubic, isLinear); in hullIntersects() 758 return conic.hullIntersects(fCubic, isLinear); in hullIntersects() 762 rect->setBounds(fCubic); in setBounds()
|
D | SkOpSegment.h | 66 curve.fCubic.set(pts); in addCubic()
|
D | SkOpAngle.cpp | 1028 (void) tangentPart.cubicPart(fPart.fCurve.fCubic); in setSpans() 1061 testPart.cubicEndPoints(fPart.fCurve.fCubic); in setSpans()
|
D | SkPathOpsDebug.cpp | 1140 const SkDPoint* pts = curvePart.fCubic.fPts; in debugShowActiveSpans()
|
/external/skia/bench/ |
D | BezierBench.cpp | 18 SkPath fCubic; member 39 const SkPath& path = rec->fCubic; in draw_cubic() 72 fRec.fCubic.moveTo(20, 20); in BezierBench() 73 fRec.fCubic.cubicTo(40, 20, 60, 40, 60, 60); in BezierBench() 74 fRec.fCubic.cubicTo(40, 60, 20, 80, 20, 100); in BezierBench()
|
/external/skia/tools/viewer/ |
D | XferSlide.cpp | 219 fCubic = {.3f, .5f}; in CubicResamplerSlide() 225 rec.draw(canvas, fCubic); in draw() 235 SkPoint loc = SkMatrix::RectToRect({0,0,1,1}, fDomain).mapXY(fCubic.B, fCubic.C); in draw() 239 str.printf("B=%4.2f C=%4.2f", fCubic.B, fCubic.C); in draw() 263 fCubic = {B, C}; in onFindClickHandler() 303 SkCubicResampler fCubic; member in CubicResamplerSlide
|
/external/skia/tests/ |
D | PathOpsBoundsTest.cpp | 79 curve.fCubic.set(curvePts); in DEF_TEST()
|
D | PathOpsDebug.cpp | 153 fCubic.dumpID(id); in dumpID() 159 fCubic.dumpID(id); in dumpID()
|