/third_party/skia/src/pathops/ |
D | SkDCubicLineIntersection.cpp | 86 : fCubic(c) in LineCubicIntersections() 101 SkDPoint cubicMidPt = fCubic.ptAtT(cubicMidT); in checkCoincident() 127 c[n].fX = (fCubic[n].fY - fLine[0].fY) * adj - (fCubic[n].fX - fLine[0].fX) * opp; in intersectRay() 136 c[n].fY = (fCubic[n].fY - fLine[0].fY) * opp in intersectRay() 137 + (fCubic[n].fX - fLine[0].fX) * adj; in intersectRay() 190 int count = HorizontalIntersect(fCubic, axisIntercept, roots); in horizontalIntersect() 193 SkDPoint pt = { fCubic.ptAtT(cubicT).fX, axisIntercept }; in horizontalIntersect() 217 SkDPoint cubicMidPt = fCubic.ptAtT(cubicMidT); in uniqueAnswer() 223 SkDPoint cPt = fCubic.ptAtT(cubicT); in uniqueAnswer() 253 int count = VerticalIntersect(fCubic, axisIntercept, roots); in verticalIntersect() [all …]
|
D | SkPathOpsCubic.h | 186 SkDCubic fCubic; 191 : fCubic(c) { in SkTCubic() 196 const SkDPoint& operator[](int n) const override { return fCubic[n]; } 197 SkDPoint& operator[](int n) override { return fCubic[n]; } 199 bool collapsed() const override { return fCubic.collapsed(); } in collapsed() 200 bool controlsInside() const override { return fCubic.controlsInside(); } in controlsInside() 201 void debugInit() override { return fCubic.debugInit(); } in debugInit() 203 void dumpID(int id) const override { return fCubic.dumpID(id); } in dumpID() 205 SkDVector dxdyAtT(double t) const override { return fCubic.dxdyAtT(t); } in dxdyAtT() 207 SkOpGlobalState* globalState() const override { return fCubic.globalState(); } in globalState() [all …]
|
D | SkPathOpsCurve.cpp | 15 double minX = fCubic.fPts[0].fX; in nearPoint() 18 minX = std::min(minX, fCubic.fPts[index].fX); in nearPoint() 19 maxX = std::max(maxX, fCubic.fPts[index].fX); in nearPoint() 24 double minY = fCubic.fPts[0].fY; in nearPoint() 27 minY = std::min(minY, fCubic.fPts[index].fY); in nearPoint() 28 maxY = std::max(maxY, fCubic.fPts[index].fY); in nearPoint() 58 fCubic.fPts[index] += off; in offset() 77 dRect.setBounds(dCurve, fCubic, tStart, tEnd); in setCubicBounds()
|
D | SkReduceOrder.cpp | 227 return coincident_line(cubic, fCubic); in reduce() 229 return vertical_line(cubic, fCubic); in reduce() 232 return horizontal_line(cubic, fCubic); in reduce() 234 int result = check_linear(cubic, minX, maxX, minY, maxY, fCubic); in reduce() 239 && (result = check_quadratic(cubic, fCubic))) { in reduce() 242 fCubic = cubic; in reduce()
|
D | SkPathOpsCurve.h | 53 SkDCubic fCubic; member 59 return fCubic[n]; 64 return fCubic[n]; 147 return c.fCubic.ptAtT(t); in ddcubic_xy_at_t() 227 return c.fCubic.dxdyAtT(t); in ddcubic_dxdy_at_t() 349 i->intersectRay(c.fCubic, ray); in dcubic_intersect_ray()
|
D | SkOpSegment.cpp | 188 path->cubicTo(curvePart.fCurve.fCubic[1].asSkPoint(), in addCurveTo() 189 curvePart.fCurve.fCubic[2].asSkPoint(), end->ptT()); in addCurveTo() 1624 edge->fCubic[0].set(startPtT.fPt); in subDivide() 1626 edge->fCubic[points].set(endPtT.fPt); in subDivide() 1645 edge->fCubic[1].set(fPts[1]); in subDivide() 1646 edge->fCubic[2].set(fPts[2]); in subDivide() 1649 edge->fCubic[1].set(fPts[2]); in subDivide() 1650 edge->fCubic[2].set(fPts[1]); in subDivide() 1660 SkDCubic::SubDivide(fPts, edge->fCubic[0], edge->fCubic[3], startT, endT, &edge->fCubic[1]); in subDivide()
|
D | SkReduceOrder.h | 32 SkDCubic fCubic; member
|
D | SkPathOpsCubic.cpp | 739 return i->intersectRay(fCubic, line); in intersectRay() 743 return quad.hullIntersects(fCubic, isLinear); in hullIntersects() 747 return conic.hullIntersects(fCubic, isLinear); in hullIntersects() 751 rect->setBounds(fCubic); in setBounds()
|
D | SkOpSegment.h | 55 curve.fCubic.set(pts); in addCubic()
|
D | SkOpAngle.cpp | 1013 (void) tangentPart.cubicPart(fPart.fCurve.fCubic); in setSpans() 1046 testPart.cubicEndPoints(fPart.fCurve.fCubic); in setSpans()
|
D | SkPathOpsDebug.cpp | 1139 const SkDPoint* pts = curvePart.fCubic.fPts; in debugShowActiveSpans()
|
/third_party/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()
|
/third_party/skia/samplecode/ |
D | SampleXfer.cpp | 248 fCubic = {.3f, .5f}; in CubicResamplerDemo() 256 rec.draw(canvas, fCubic); in onDrawContent() 266 SkPoint loc = SkMatrix::RectToRect({0,0,1,1}, fDomain).mapXY(fCubic.B, fCubic.C); in onDrawContent() 270 str.printf("B=%4.2f C=%4.2f", fCubic.B, fCubic.C); in onDrawContent() 293 fCubic = {B, C}; in onFindClickHandler() 302 SkImage::CubicResampler fCubic; member in CubicResamplerDemo
|
/third_party/skia/tests/ |
D | PathOpsBoundsTest.cpp | 70 curve.fCubic.set(curvePts); in DEF_TEST()
|
D | PathOpsDebug.cpp | 132 fCubic.dumpID(id); in dumpID() 138 fCubic.dumpID(id); in dumpID()
|