Home
last modified time | relevance | path

Searched refs:yIntercept (Results 1 – 12 of 12) sorted by relevance

/third_party/skia/src/pathops/
DSkDLineIntersection.cpp305 double yIntercept = line[0].fY + fT[0][0] * (line[1].fY - line[0].fY); in vertical() local
306 if (between(top, yIntercept, bottom)) { in vertical()
307 fT[1][0] = (yIntercept - top) / (bottom - top); in vertical()
315 fPt[0].fY = yIntercept; in vertical()
DSkDQuadLineIntersection.cpp464 int SkDQuad::horizontalIntersect(double yIntercept, double roots[2]) const { in horizontalIntersect() argument
465 return SkIntersections::HorizontalIntercept(*this, yIntercept, roots); in horizontalIntersect()
DSkDCubicLineIntersection.cpp449 int SkDCubic::horizontalIntersect(double yIntercept, double roots[3]) const { in horizontalIntersect() argument
450 return LineCubicIntersections::HorizontalIntersect(*this, yIntercept, roots); in horizontalIntersect()
DSkPathOpsQuad.h79 int horizontalIntersect(double yIntercept, double roots[2]) const;
DSkPathOpsCubic.h102 int horizontalIntersect(double yIntercept, double roots[3]) const;
/third_party/flutter/skia/src/pathops/
DSkDLineIntersection.cpp305 double yIntercept = line[0].fY + fT[0][0] * (line[1].fY - line[0].fY); in vertical() local
306 if (between(top, yIntercept, bottom)) { in vertical()
307 fT[1][0] = (yIntercept - top) / (bottom - top); in vertical()
315 fPt[0].fY = yIntercept; in vertical()
DSkDQuadLineIntersection.cpp464 int SkDQuad::horizontalIntersect(double yIntercept, double roots[2]) const { in horizontalIntersect() argument
465 return SkIntersections::HorizontalIntercept(*this, yIntercept, roots); in horizontalIntersect()
DSkDCubicLineIntersection.cpp449 int SkDCubic::horizontalIntersect(double yIntercept, double roots[3]) const { in horizontalIntersect() argument
450 return LineCubicIntersections::HorizontalIntersect(*this, yIntercept, roots); in horizontalIntersect()
DSkPathOpsQuad.h79 int horizontalIntersect(double yIntercept, double roots[2]) const;
DSkPathOpsCubic.h102 int horizontalIntersect(double yIntercept, double roots[3]) const;
/third_party/flutter/skia/modules/sksg/samples/
DSampleSVGPong.cpp286 SkScalar t, yIntercept; in updatePaddleStrategy() local
287 std::tie(t, yIntercept) = find_yintercept(fBall.pos, fBall.spd, kBounds); in updatePaddleStrategy()
293 catcher->spd.fY = (yIntercept - catcher->pos.fY) / t; in updatePaddleStrategy()
/third_party/skia/modules/sksg/samples/
DSampleSVGPong.cpp285 SkScalar t, yIntercept; in updatePaddleStrategy() local
286 std::tie(t, yIntercept) = find_yintercept(fBall.pos, fBall.spd, kBounds); in updatePaddleStrategy()
292 catcher->spd.fY = (yIntercept - catcher->pos.fY) / t; in updatePaddleStrategy()