Home
last modified time | relevance | path

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

1234

/external/skia/src/pathops/
DSkIntersections.h76 SkDLine line; in conicLine()
100 SkDLine line; in cubicLine()
134 SkDLine line; in lineHorizontal()
141 SkDLine line; in lineVertical()
148 SkDLine aLine, bLine; in lineLine()
186 SkDLine line; in quadLine()
243 int horizontal(const SkDLine&, double left, double right, double y, bool flipped);
250 static double HorizontalIntercept(const SkDLine& line, double y);
258 int intersect(const SkDLine&, const SkDLine&);
259 int intersect(const SkDQuad&, const SkDLine&);
[all …]
DSkDLineIntersection.cpp34 void SkIntersections::computePoints(const SkDLine& line, int used) { in computePoints()
41 int SkIntersections::intersectRay(const SkDLine& a, const SkDLine& b) { in intersectRay()
82 int SkIntersections::intersect(const SkDLine& a, const SkDLine& b) { in intersect()
183 static int horizontal_coincident(const SkDLine& line, double y) { in horizontal_coincident()
199 double SkIntersections::HorizontalIntercept(const SkDLine& line, double y) { in HorizontalIntercept()
204 int SkIntersections::horizontal(const SkDLine& line, double left, double right, in horizontal()
219 if ((t = SkDLine::ExactPointH(line[index], left, right, y)) >= 0) { in horizontal()
251 if ((t = SkDLine::NearPointH(line[index], left, right, y)) >= 0) { in horizontal()
261 static int vertical_coincident(const SkDLine& line, double x) { in vertical_coincident()
277 double SkIntersections::VerticalIntercept(const SkDLine& line, double x) { in VerticalIntercept()
[all …]
DSkPathOpsCurve.h50 SkDLine fLine;
103 SkDLine line; in dline_xy_at_t()
183 SkDLine line; in dline_dxdy_at_t()
263 SkDLine line; in line_is_vertical()
299 static void line_intersect_ray(const SkPoint a[2], SkScalar , const SkDLine& ray, in line_intersect_ray()
301 SkDLine line; in line_intersect_ray()
306 static void quad_intersect_ray(const SkPoint a[3], SkScalar , const SkDLine& ray, in quad_intersect_ray()
313 static void conic_intersect_ray(const SkPoint a[3], SkScalar weight, const SkDLine& ray, in conic_intersect_ray()
320 static void cubic_intersect_ray(const SkPoint a[4], SkScalar , const SkDLine& ray, in cubic_intersect_ray()
327 static void (* const CurveIntersectRay[])(const SkPoint[] , SkScalar , const SkDLine& ,
[all …]
DSkPathOpsLine.cpp9 SkDPoint SkDLine::ptAtT(double t) const { in ptAtT()
21 double SkDLine::exactPoint(const SkDPoint& xy) const { in exactPoint()
31 double SkDLine::nearPoint(const SkDPoint& xy, bool* unequal) const { in nearPoint()
65 bool SkDLine::nearRay(const SkDPoint& xy) const { in nearRay()
81 double SkDLine::ExactPointH(const SkDPoint& xy, double left, double right, double y) { in ExactPointH()
93 double SkDLine::NearPointH(const SkDPoint& xy, double left, double right, double y) { in NearPointH()
116 double SkDLine::ExactPointV(const SkDPoint& xy, double top, double bottom, double x) { in ExactPointV()
128 double SkDLine::NearPointV(const SkDPoint& xy, double top, double bottom, double x) { in NearPointV()
DSkDQuadLineIntersection.cpp97 LineQuadraticIntersections(const SkDQuad& q, const SkDLine& l, SkIntersections* i) in LineQuadraticIntersections()
321 double lineT = SkDLine::ExactPointH(fQuad[qIndex], left, right, y); in addExactHorizontalEndPoints()
336 double lineT = SkDLine::NearPointH(fQuad[qIndex], left, right, y); in addNearHorizontalEndPoints()
347 double lineT = SkDLine::ExactPointV(fQuad[qIndex], top, bottom, x); in addExactVerticalEndPoints()
362 double lineT = SkDLine::NearPointV(fQuad[qIndex], top, bottom, x); in addNearVerticalEndPoints()
418 const SkDLine* fLine;
425 SkDLine line = {{{ left, y }, { right, y }}}; in horizontal()
432 SkDLine line = {{{ x, top }, { x, bottom }}}; in vertical()
437 int SkIntersections::intersect(const SkDQuad& quad, const SkDLine& line) { in intersect()
443 int SkIntersections::intersectRay(const SkDQuad& quad, const SkDLine& line) { in intersectRay()
DSkDCubicLineIntersection.cpp85 LineCubicIntersections(const SkDCubic& c, const SkDLine& l, SkIntersections* i) in LineCubicIntersections()
316 double lineT = SkDLine::ExactPointH(fCubic[cIndex], left, right, y); in addExactHorizontalEndPoints()
331 double lineT = SkDLine::NearPointH(fCubic[cIndex], left, right, y); in addNearHorizontalEndPoints()
342 double lineT = SkDLine::ExactPointV(fCubic[cIndex], top, bottom, x); in addExactVerticalEndPoints()
357 double lineT = SkDLine::NearPointV(fCubic[cIndex], top, bottom, x); in addNearVerticalEndPoints()
413 const SkDLine& fLine;
420 SkDLine line = {{{ left, y }, { right, y }}}; in horizontal()
427 SkDLine line = {{{ x, top }, { x, bottom }}}; in vertical()
432 int SkIntersections::intersect(const SkDCubic& cubic, const SkDLine& line) { in intersect()
438 int SkIntersections::intersectRay(const SkDCubic& cubic, const SkDLine& line) { in intersectRay()
DSkDConicLineIntersection.cpp19 LineConicIntersections(const SkDConic& c, const SkDLine& l, SkIntersections* i) in LineConicIntersections()
221 double lineT = SkDLine::ExactPointH(fConic[cIndex], left, right, y); in addExactHorizontalEndPoints()
236 double lineT = SkDLine::NearPointH(fConic[cIndex], left, right, y); in addNearHorizontalEndPoints()
247 double lineT = SkDLine::ExactPointV(fConic[cIndex], top, bottom, x); in addExactVerticalEndPoints()
262 double lineT = SkDLine::NearPointV(fConic[cIndex], top, bottom, x); in addNearVerticalEndPoints()
342 const SkDLine* fLine;
349 SkDLine line = {{{ left, y }, { right, y }}}; in horizontal()
356 SkDLine line = {{{ x, top }, { x, bottom }}}; in vertical()
361 int SkIntersections::intersect(const SkDConic& conic, const SkDLine& line) { in intersect()
367 int SkIntersections::intersectRay(const SkDConic& conic, const SkDLine& line) { in intersectRay()
/external/skqp/src/pathops/
DSkIntersections.h76 SkDLine line; in conicLine()
100 SkDLine line; in cubicLine()
134 SkDLine line; in lineHorizontal()
141 SkDLine line; in lineVertical()
148 SkDLine aLine, bLine; in lineLine()
186 SkDLine line; in quadLine()
243 int horizontal(const SkDLine&, double left, double right, double y, bool flipped);
250 static double HorizontalIntercept(const SkDLine& line, double y);
258 int intersect(const SkDLine&, const SkDLine&);
259 int intersect(const SkDQuad&, const SkDLine&);
[all …]
DSkDLineIntersection.cpp34 void SkIntersections::computePoints(const SkDLine& line, int used) { in computePoints()
41 int SkIntersections::intersectRay(const SkDLine& a, const SkDLine& b) { in intersectRay()
82 int SkIntersections::intersect(const SkDLine& a, const SkDLine& b) { in intersect()
183 static int horizontal_coincident(const SkDLine& line, double y) { in horizontal_coincident()
199 double SkIntersections::HorizontalIntercept(const SkDLine& line, double y) { in HorizontalIntercept()
204 int SkIntersections::horizontal(const SkDLine& line, double left, double right, in horizontal()
219 if ((t = SkDLine::ExactPointH(line[index], left, right, y)) >= 0) { in horizontal()
251 if ((t = SkDLine::NearPointH(line[index], left, right, y)) >= 0) { in horizontal()
261 static int vertical_coincident(const SkDLine& line, double x) { in vertical_coincident()
277 double SkIntersections::VerticalIntercept(const SkDLine& line, double x) { in VerticalIntercept()
[all …]
DSkPathOpsCurve.h50 SkDLine fLine;
103 SkDLine line; in dline_xy_at_t()
183 SkDLine line; in dline_dxdy_at_t()
263 SkDLine line; in line_is_vertical()
299 static void line_intersect_ray(const SkPoint a[2], SkScalar , const SkDLine& ray, in line_intersect_ray()
301 SkDLine line; in line_intersect_ray()
306 static void quad_intersect_ray(const SkPoint a[3], SkScalar , const SkDLine& ray, in quad_intersect_ray()
313 static void conic_intersect_ray(const SkPoint a[3], SkScalar weight, const SkDLine& ray, in conic_intersect_ray()
320 static void cubic_intersect_ray(const SkPoint a[4], SkScalar , const SkDLine& ray, in cubic_intersect_ray()
327 static void (* const CurveIntersectRay[])(const SkPoint[] , SkScalar , const SkDLine& ,
[all …]
DSkPathOpsLine.cpp9 SkDPoint SkDLine::ptAtT(double t) const { in ptAtT()
21 double SkDLine::exactPoint(const SkDPoint& xy) const { in exactPoint()
31 double SkDLine::nearPoint(const SkDPoint& xy, bool* unequal) const { in nearPoint()
65 bool SkDLine::nearRay(const SkDPoint& xy) const { in nearRay()
81 double SkDLine::ExactPointH(const SkDPoint& xy, double left, double right, double y) { in ExactPointH()
93 double SkDLine::NearPointH(const SkDPoint& xy, double left, double right, double y) { in NearPointH()
116 double SkDLine::ExactPointV(const SkDPoint& xy, double top, double bottom, double x) { in ExactPointV()
128 double SkDLine::NearPointV(const SkDPoint& xy, double top, double bottom, double x) { in NearPointV()
DSkDQuadLineIntersection.cpp97 LineQuadraticIntersections(const SkDQuad& q, const SkDLine& l, SkIntersections* i) in LineQuadraticIntersections()
321 double lineT = SkDLine::ExactPointH(fQuad[qIndex], left, right, y); in addExactHorizontalEndPoints()
336 double lineT = SkDLine::NearPointH(fQuad[qIndex], left, right, y); in addNearHorizontalEndPoints()
347 double lineT = SkDLine::ExactPointV(fQuad[qIndex], top, bottom, x); in addExactVerticalEndPoints()
362 double lineT = SkDLine::NearPointV(fQuad[qIndex], top, bottom, x); in addNearVerticalEndPoints()
418 const SkDLine* fLine;
425 SkDLine line = {{{ left, y }, { right, y }}}; in horizontal()
432 SkDLine line = {{{ x, top }, { x, bottom }}}; in vertical()
437 int SkIntersections::intersect(const SkDQuad& quad, const SkDLine& line) { in intersect()
443 int SkIntersections::intersectRay(const SkDQuad& quad, const SkDLine& line) { in intersectRay()
DSkDConicLineIntersection.cpp19 LineConicIntersections(const SkDConic& c, const SkDLine& l, SkIntersections* i) in LineConicIntersections()
221 double lineT = SkDLine::ExactPointH(fConic[cIndex], left, right, y); in addExactHorizontalEndPoints()
236 double lineT = SkDLine::NearPointH(fConic[cIndex], left, right, y); in addNearHorizontalEndPoints()
247 double lineT = SkDLine::ExactPointV(fConic[cIndex], top, bottom, x); in addExactVerticalEndPoints()
262 double lineT = SkDLine::NearPointV(fConic[cIndex], top, bottom, x); in addNearVerticalEndPoints()
342 const SkDLine* fLine;
349 SkDLine line = {{{ left, y }, { right, y }}}; in horizontal()
356 SkDLine line = {{{ x, top }, { x, bottom }}}; in vertical()
361 int SkIntersections::intersect(const SkDConic& conic, const SkDLine& line) { in intersect()
367 int SkIntersections::intersectRay(const SkDConic& conic, const SkDLine& line) { in intersectRay()
DSkDCubicLineIntersection.cpp85 LineCubicIntersections(const SkDCubic& c, const SkDLine& l, SkIntersections* i) in LineCubicIntersections()
316 double lineT = SkDLine::ExactPointH(fCubic[cIndex], left, right, y); in addExactHorizontalEndPoints()
331 double lineT = SkDLine::NearPointH(fCubic[cIndex], left, right, y); in addNearHorizontalEndPoints()
342 double lineT = SkDLine::ExactPointV(fCubic[cIndex], top, bottom, x); in addExactVerticalEndPoints()
357 double lineT = SkDLine::NearPointV(fCubic[cIndex], top, bottom, x); in addNearVerticalEndPoints()
413 const SkDLine& fLine;
420 SkDLine line = {{{ left, y }, { right, y }}}; in horizontal()
427 SkDLine line = {{{ x, top }, { x, bottom }}}; in vertical()
432 int SkIntersections::intersect(const SkDCubic& cubic, const SkDLine& line) { in intersect()
438 int SkIntersections::intersectRay(const SkDCubic& cubic, const SkDLine& line) { in intersectRay()
/external/skqp/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 …]
DPathOpsDLineTest.cpp11 static const SkDLine tests[] = {
24 const SkDLine& line = tests[index]; in DEF_TEST()
26 SkDLine line2; in DEF_TEST()
DPathOpsQuadLineIntersectionTest.cpp19 SkDLine line;
33 static int doIntersect(SkIntersections& intersections, const SkDQuad& quad, const SkDLine& line, in doIntersect()
64 SkDLine line;
90 const SkDLine& line = oneOffs[index].line; in testOneOffs()
119 const SkDLine& line = lineQuadTests[index].line; in DEF_TEST()
DPathOpsQuadLineIntersectionThreadedTest.cpp18 static int doIntersect(SkIntersections& intersections, const SkDQuad& quad, const SkDLine& line, in doIntersect()
48 const SkDLine& line, const double x, const double y) { in testLineIntersect()
105 SkDLine line = {{{x - h, y - v}, {x, y}}}; in testQuadLineIntersectMain()
108 SkDLine line2 = {{{x, y}, {x + h, y + v}}}; in testQuadLineIntersectMain()
111 SkDLine line3 = {{{x - h, y - v}, {x + h, y + v}}}; in testQuadLineIntersectMain()
DPathOpsConicLineIntersectionTest.cpp20 SkDLine line;
34 static int doIntersect(SkIntersections& intersections, const SkDConic& conic, const SkDLine& line, in doIntersect()
65 SkDLine line;
80 const SkDLine& line = oneOffs[index].line; in testOneOffs()
109 const SkDLine& line = lineConicTests[index].line; in DEF_TEST()
/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 …]
DPathOpsDLineTest.cpp11 static const SkDLine tests[] = {
24 const SkDLine& line = tests[index]; in DEF_TEST()
26 SkDLine line2; in DEF_TEST()
DPathOpsQuadLineIntersectionTest.cpp19 SkDLine line;
33 static int doIntersect(SkIntersections& intersections, const SkDQuad& quad, const SkDLine& line, in doIntersect()
64 SkDLine line;
90 const SkDLine& line = oneOffs[index].line; in testOneOffs()
119 const SkDLine& line = lineQuadTests[index].line; in DEF_TEST()
DPathOpsQuadLineIntersectionThreadedTest.cpp18 static int doIntersect(SkIntersections& intersections, const SkDQuad& quad, const SkDLine& line, in doIntersect()
48 const SkDLine& line, const double x, const double y) { in testLineIntersect()
105 SkDLine line = {{{x - h, y - v}, {x, y}}}; in testQuadLineIntersectMain()
108 SkDLine line2 = {{{x, y}, {x + h, y + v}}}; in testQuadLineIntersectMain()
111 SkDLine line3 = {{{x - h, y - v}, {x + h, y + v}}}; in testQuadLineIntersectMain()
DPathOpsConicLineIntersectionTest.cpp20 SkDLine line;
34 static int doIntersect(SkIntersections& intersections, const SkDConic& conic, const SkDLine& line, in doIntersect()
65 SkDLine line;
80 const SkDLine& line = oneOffs[index].line; in testOneOffs()
109 const SkDLine& line = lineConicTests[index].line; in DEF_TEST()
DPathOpsCubicLineIntersectionTest.cpp18 SkDLine line;
34 const SkDLine& line = failLineCubicTests[iIndex].line; in testFail()
103 static int doIntersect(SkIntersections& intersections, const SkDCubic& cubic, const SkDLine& line) { in doIntersect()
136 const SkDLine& line = lineCubicTests[iIndex].line; in testOne()
202 const SkDLine& line = lineCubicTests[iIndex].line; in DEF_TEST()

1234