Home
last modified time | relevance | path

Searched refs:SkDLine (Results 1 – 25 of 31) sorted by relevance

12

/external/skia/src/pathops/
DSkIntersections.h72 SkDLine line; in conicLine()
96 SkDLine line; in cubicLine()
121 SkDLine line; in lineHorizontal()
128 SkDLine line; in lineVertical()
135 SkDLine aLine, bLine; in lineLine()
173 SkDLine line; in quadLine()
230 int horizontal(const SkDLine&, double left, double right, double y, bool flipped);
237 static double HorizontalIntercept(const SkDLine& line, double y);
245 int intersect(const SkDLine&, const SkDLine&);
246 int intersect(const SkDQuad&, const SkDLine&);
[all …]
DSkDLineIntersection.cpp27 void SkIntersections::computePoints(const SkDLine& line, int used) { in computePoints()
34 int SkIntersections::intersectRay(const SkDLine& a, const SkDLine& b) { in intersectRay()
75 int SkIntersections::intersect(const SkDLine& a, const SkDLine& b) { in intersect()
176 static int horizontal_coincident(const SkDLine& line, double y) { in horizontal_coincident()
191 double SkIntersections::HorizontalIntercept(const SkDLine& line, double y) { in HorizontalIntercept()
195 int SkIntersections::horizontal(const SkDLine& line, double left, double right, in horizontal()
210 if ((t = SkDLine::ExactPointH(line[index], left, right, y)) >= 0) { in horizontal()
242 if ((t = SkDLine::NearPointH(line[index], left, right, y)) >= 0) { in horizontal()
252 static int vertical_coincident(const SkDLine& line, double x) { in vertical_coincident()
267 double SkIntersections::VerticalIntercept(const SkDLine& line, double x) { in VerticalIntercept()
[all …]
DSkPathOpsLine.cpp31 double SkDLine::isLeft(const SkDPoint& pt) const { in isLeft()
37 SkDPoint SkDLine::ptAtT(double t) const { in ptAtT()
49 double SkDLine::exactPoint(const SkDPoint& xy) const { in exactPoint()
59 double SkDLine::nearPoint(const SkDPoint& xy, bool* unequal) const { in nearPoint()
90 bool SkDLine::nearRay(const SkDPoint& xy) const { in nearRay()
106 double SkDLine::ExactPointH(const SkDPoint& xy, double left, double right, double y) { in ExactPointH()
118 double SkDLine::NearPointH(const SkDPoint& xy, double left, double right, double y) { in NearPointH()
141 double SkDLine::ExactPointV(const SkDPoint& xy, double top, double bottom, double x) { in ExactPointV()
153 double SkDLine::NearPointV(const SkDPoint& xy, double top, double bottom, double x) { in NearPointV()
DSkPathOpsCurve.h50 SkDLine fLine;
87 SkDLine line; in dline_xy_at_t()
143 SkDLine line; in dline_dxdy_at_t()
199 SkDLine line; in line_is_vertical()
235 static void line_intersect_ray(const SkPoint a[2], SkScalar , const SkDLine& ray, in line_intersect_ray()
237 SkDLine line; in line_intersect_ray()
242 static void quad_intersect_ray(const SkPoint a[3], SkScalar , const SkDLine& ray, in quad_intersect_ray()
249 static void conic_intersect_ray(const SkPoint a[3], SkScalar weight, const SkDLine& ray, in conic_intersect_ray()
256 static void cubic_intersect_ray(const SkPoint a[4], SkScalar , const SkDLine& ray, in cubic_intersect_ray()
263 static void (* const CurveIntersectRay[])(const SkPoint[] , SkScalar , const SkDLine& ,
[all …]
DSkDQuadLineIntersection.cpp96 LineQuadraticIntersections(const SkDQuad& q, const SkDLine& l, SkIntersections* i) in LineQuadraticIntersections()
305 double lineT = SkDLine::ExactPointH(fQuad[qIndex], left, right, y); in addExactHorizontalEndPoints()
320 double lineT = SkDLine::NearPointH(fQuad[qIndex], left, right, y); in addNearHorizontalEndPoints()
331 double lineT = SkDLine::ExactPointV(fQuad[qIndex], top, bottom, x); in addExactVerticalEndPoints()
346 double lineT = SkDLine::NearPointV(fQuad[qIndex], top, bottom, x); in addNearVerticalEndPoints()
402 const SkDLine* fLine;
409 SkDLine line = {{{ left, y }, { right, y }}}; in horizontal()
416 SkDLine line = {{{ x, top }, { x, bottom }}}; in vertical()
421 int SkIntersections::intersect(const SkDQuad& quad, const SkDLine& line) { in intersect()
427 int SkIntersections::intersectRay(const SkDQuad& quad, const SkDLine& line) { in intersectRay()
DSkDConicLineIntersection.cpp18 LineConicIntersections(const SkDConic& c, const SkDLine& l, SkIntersections* i) in LineConicIntersections()
200 double lineT = SkDLine::ExactPointH(fConic[cIndex], left, right, y); in addExactHorizontalEndPoints()
215 double lineT = SkDLine::NearPointH(fConic[cIndex], left, right, y); in addNearHorizontalEndPoints()
226 double lineT = SkDLine::ExactPointV(fConic[cIndex], top, bottom, x); in addExactVerticalEndPoints()
241 double lineT = SkDLine::NearPointV(fConic[cIndex], top, bottom, x); in addNearVerticalEndPoints()
321 const SkDLine* fLine;
328 SkDLine line = {{{ left, y }, { right, y }}}; in horizontal()
335 SkDLine line = {{{ x, top }, { x, bottom }}}; in vertical()
340 int SkIntersections::intersect(const SkDConic& conic, const SkDLine& line) { in intersect()
346 int SkIntersections::intersectRay(const SkDConic& conic, const SkDLine& line) { in intersectRay()
DSkDCubicLineIntersection.cpp84 LineCubicIntersections(const SkDCubic& c, const SkDLine& l, SkIntersections* i) in LineCubicIntersections()
298 double lineT = SkDLine::ExactPointH(fCubic[cIndex], left, right, y); in addExactHorizontalEndPoints()
313 double lineT = SkDLine::NearPointH(fCubic[cIndex], left, right, y); in addNearHorizontalEndPoints()
324 double lineT = SkDLine::ExactPointV(fCubic[cIndex], top, bottom, x); in addExactVerticalEndPoints()
339 double lineT = SkDLine::NearPointV(fCubic[cIndex], top, bottom, x); in addNearVerticalEndPoints()
395 const SkDLine& fLine;
402 SkDLine line = {{{ left, y }, { right, y }}}; in horizontal()
409 SkDLine line = {{{ x, top }, { x, bottom }}}; in vertical()
414 int SkIntersections::intersect(const SkDCubic& cubic, const SkDLine& line) { in intersect()
420 int SkIntersections::intersectRay(const SkDCubic& cubic, const SkDLine& line) { in intersectRay()
DSkReduceOrder.h21 int reduce(const SkDLine& line);
28 SkDLine fLine;
DSkConicLineIntersection.cpp13 LineConicIntersections(const SkDConic& c, const SkDLine& l, SkIntersections* i) in LineConicIntersections()
30 int SkIntersections::intersectRay(const SkDConic& conic, const SkDLine& line) { in intersectRay()
DSkPathOpsLine.h12 struct SkDLine { struct
18 const SkDLine& set(const SkPoint pts[2]) { in set() argument
DSkLineParameters.h79 if (part[0] == part[1] || ((const SkDLine& ) part[0]).nearRay(part[2])) { in cubicPart()
85 void lineEndPoints(const SkDLine& pts) { in lineEndPoints()
DSkPathOpsQuad.cpp249 SkDLine b0 = {{a, sub[1] + (a - sub[0])}}; in subDivide()
250 SkDLine b1 = {{c, sub[1] + (c - sub[2])}}; in subDivide()
DSkOpAngle.cpp447 SkDLine rays[] = {{{this->fCurvePart[0], rh->fCurvePart[rPts]}}, in endsIntersect()
554 SkDLine rayEnd; in endToSide()
783 SkDLine rayMid; in midToSide()
949 SkDLine lineHalf; in setSpans()
959 SkDLine lineHalf; in setSpans()
DSkReduceOrder.cpp9 int SkReduceOrder::reduce(const SkDLine& line) { in reduce()
/external/skia/tests/
DPathOpsLineIntersectionTest.cpp13 static const SkDLine tests[][2] = {
46 static const SkDLine noIntersect[][2] = {
59 static const SkDLine coincidentTests[][2] = {
87 static void check_results(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2, in check_results()
107 static void testOne(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2, in testOne()
151 static void testOneCoincident(skiatest::Reporter* reporter, const SkDLine& line1, in testOneCoincident()
152 const SkDLine& line2) { in testOneCoincident()
205 const SkDLine& line1 = coincidentTests[index][0]; in DEF_TEST()
206 const SkDLine& line2 = coincidentTests[index][1]; in DEF_TEST()
210 const SkDLine& line1 = tests[index][0]; in DEF_TEST()
[all …]
DPathOpsQuadLineIntersectionTest.cpp17 SkDLine line;
31 static int doIntersect(SkIntersections& intersections, const SkDQuad& quad, const SkDLine& line, in doIntersect()
60 SkDLine line;
84 const SkDLine& line = oneOffs[index].line; in testOneOffs()
111 const SkDLine& line = lineQuadTests[index].line; in DEF_TEST()
DPathOpsQuadLineIntersectionThreadedTest.cpp14 static int doIntersect(SkIntersections& intersections, const SkDQuad& quad, const SkDLine& line, in doIntersect()
42 const SkDLine& line, const double x, const double y) { in testLineIntersect()
99 SkDLine line = {{{x - h, y - v}, {x, y}}}; in testQuadLineIntersectMain()
102 SkDLine line2 = {{{x, y}, {x + h, y + v}}}; in testQuadLineIntersectMain()
105 SkDLine line3 = {{{x - h, y - v}, {x + h, y + v}}}; in testQuadLineIntersectMain()
DPathOpsDLineTest.cpp11 static const SkDLine tests[] = {
33 const SkDLine& line = tests[index]; in DEF_TEST()
35 SkDLine line2; in DEF_TEST()
DPathOpsConicLineIntersectionTest.cpp17 SkDLine line;
31 static int doIntersect(SkIntersections& intersections, const SkDConic& conic, const SkDLine& line, in doIntersect()
60 SkDLine line;
73 const SkDLine& line = oneOffs[index].line; in testOneOffs()
100 const SkDLine& line = lineConicTests[index].line; in DEF_TEST()
DPathOpsCubicLineIntersectionTest.cpp16 SkDLine line;
30 const SkDLine& line = failLineCubicTests[iIndex].line; in testFail()
99 static int doIntersect(SkIntersections& intersections, const SkDCubic& cubic, const SkDLine& line) { in doIntersect()
128 const SkDLine& line = lineCubicTests[iIndex].line; in testOne()
194 const SkDLine& line = lineCubicTests[iIndex].line; in DEF_TEST()
DPathOpsThreeWayTest.cpp52 SkDLine oLine = {{ oTest.curve[0], oTest.curve[1] }}; in testSetTest()
53 SkDLine iLine = {{ iTest.curve[0], iTest.curve[1] }}; in testSetTest()
DPathOpsTestCommon.h21 bool ValidLine(const SkDLine& line);
DPathOpsAngleTest.cpp40 SkDLine line = {{{0, 0}, {ran.nextRangeF(0.0001f, 1000), ran.nextRangeF(0.0001f, 1000)}}}; in DEF_TEST()
75 SkDLine line = {{{0, 0}, {ran.nextRangeF(0.0001f, 1000), ran.nextRangeF(0.0001f, 1000)}}}; in DEF_TEST()
DPathOpsDebug.cpp126 void SkDLine::dump() const { in dump()
131 void SkDLine::dumpID(int id) const { in dumpID()
136 void SkDLine::dumpInner() const { in dumpInner()
711 SkDLine line = {{quad.ptAtT(t), quad[0]}}; in DumpT()
DPathOpsCubicLineIntersectionIdeas.cpp232 SkDLine line = {{{pt.fX - 1, pt.fY}, {pt.fX + 1, pt.fY}}}; in DEF_TEST()

12