Home
last modified time | relevance | path

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

/external/guava/android/guava/src/com/google/common/math/
DLinearTransformation.java94 double yIntercept = y1 - x1 * slope; in withSlope() local
95 return new RegularLinearTransformation(slope, yIntercept); in withSlope()
164 final double yIntercept; field in LinearTransformation.RegularLinearTransformation
168 RegularLinearTransformation(double slope, double yIntercept) { in RegularLinearTransformation() argument
170 this.yIntercept = yIntercept; in RegularLinearTransformation()
174 RegularLinearTransformation(double slope, double yIntercept, LinearTransformation inverse) { in RegularLinearTransformation() argument
176 this.yIntercept = yIntercept; in RegularLinearTransformation()
197 return x * slope + yIntercept; in transform()
208 return String.format("y = %g * x + %g", slope, yIntercept); in toString()
213 return new RegularLinearTransformation(1.0 / slope, -1.0 * yIntercept / slope, this); in createInverse()
[all …]
/external/guava/guava/src/com/google/common/math/
DLinearTransformation.java94 double yIntercept = y1 - x1 * slope; in withSlope() local
95 return new RegularLinearTransformation(slope, yIntercept); in withSlope()
164 final double yIntercept; field in LinearTransformation.RegularLinearTransformation
168 RegularLinearTransformation(double slope, double yIntercept) { in RegularLinearTransformation() argument
170 this.yIntercept = yIntercept; in RegularLinearTransformation()
174 RegularLinearTransformation(double slope, double yIntercept, LinearTransformation inverse) { in RegularLinearTransformation() argument
176 this.yIntercept = yIntercept; in RegularLinearTransformation()
197 return x * slope + yIntercept; in transform()
208 return String.format("y = %g * x + %g", slope, yIntercept); in toString()
213 return new RegularLinearTransformation(1.0 / slope, -1.0 * yIntercept / slope, this); in createInverse()
[all …]
/external/skia/src/pathops/
DSkDLineIntersection.cpp310 double yIntercept = line[0].fY + fT[0][0] * (line[1].fY - line[0].fY); in vertical() local
311 if (between(top, yIntercept, bottom)) { in vertical()
312 fT[1][0] = (yIntercept - top) / (bottom - top); in vertical()
320 fPt[0].fY = yIntercept; in vertical()
DSkDQuadLineIntersection.cpp472 int SkDQuad::horizontalIntersect(double yIntercept, double roots[2]) const { in horizontalIntersect() argument
473 return SkIntersections::HorizontalIntercept(*this, yIntercept, roots); in horizontalIntersect()
DSkDCubicLineIntersection.cpp458 int SkDCubic::horizontalIntersect(double yIntercept, double roots[3]) const { in horizontalIntersect() argument
459 return LineCubicIntersections::HorizontalIntersect(*this, yIntercept, roots); in horizontalIntersect()
DSkPathOpsQuad.h91 int horizontalIntersect(double yIntercept, double roots[2]) const;
DSkPathOpsCubic.h114 int horizontalIntersect(double yIntercept, double roots[3]) const;
/external/skia/modules/sksg/slides/
DSVGPongSlide.cpp278 SkScalar t, yIntercept; in updatePaddleStrategy() local
279 std::tie(t, yIntercept) = find_yintercept(fBall.pos, fBall.spd, kBounds); in updatePaddleStrategy()
285 catcher->spd.fY = (yIntercept - catcher->pos.fY) / t; in updatePaddleStrategy()