• Home
  • Raw
  • Download

Lines Matching refs:pts

31     bool cubicEndPoints(const SkDCubic& pts) {  in cubicEndPoints()  argument
33 cubicEndPoints(pts, 0, endIndex); in cubicEndPoints()
38 cubicEndPoints(pts, 0, ++endIndex); in cubicEndPoints()
44 cubicEndPoints(pts, 0, ++endIndex); // line in cubicEndPoints()
55 if (NotAlmostEqualUlps(pts[0].fY, pts[++endIndex].fY)) { in cubicEndPoints()
56 if (pts[0].fY > pts[endIndex].fY) { in cubicEndPoints()
65 if (pts[0].fY > pts[3].fY) { in cubicEndPoints()
71 void cubicEndPoints(const SkDCubic& pts, int s, int e) { in cubicEndPoints() argument
72 fA = pts[s].fY - pts[e].fY; in cubicEndPoints()
73 fB = pts[e].fX - pts[s].fX; in cubicEndPoints()
74 fC = pts[s].fX * pts[e].fY - pts[e].fX * pts[s].fY; in cubicEndPoints()
85 void lineEndPoints(const SkDLine& pts) { in lineEndPoints() argument
86 fA = pts[0].fY - pts[1].fY; in lineEndPoints()
87 fB = pts[1].fX - pts[0].fX; in lineEndPoints()
88 fC = pts[0].fX * pts[1].fY - pts[1].fX * pts[0].fY; in lineEndPoints()
91 bool quadEndPoints(const SkDQuad& pts) { in quadEndPoints() argument
92 quadEndPoints(pts, 0, 1); in quadEndPoints()
97 quadEndPoints(pts, 0, 2); in quadEndPoints()
104 if (pts[0].fY > pts[2].fY) { in quadEndPoints()
110 void quadEndPoints(const SkDQuad& pts, int s, int e) { in quadEndPoints() argument
111 fA = pts[s].fY - pts[e].fY; in quadEndPoints()
112 fB = pts[e].fX - pts[s].fX; in quadEndPoints()
113 fC = pts[s].fX * pts[e].fY - pts[e].fX * pts[s].fY; in quadEndPoints()
138 void cubicDistanceY(const SkDCubic& pts, SkDCubic& distance) const { in cubicDistanceY() argument
142 distance[index].fY = fA * pts[index].fX + fB * pts[index].fY + fC; in cubicDistanceY()
146 void quadDistanceY(const SkDQuad& pts, SkDQuad& distance) const { in quadDistanceY() argument
150 distance[index].fY = fA * pts[index].fX + fB * pts[index].fY + fC; in quadDistanceY()
154 double controlPtDistance(const SkDCubic& pts, int index) const { in controlPtDistance() argument
156 return fA * pts[index].fX + fB * pts[index].fY + fC; in controlPtDistance()
159 double controlPtDistance(const SkDQuad& pts) const { in controlPtDistance() argument
160 return fA * pts[1].fX + fB * pts[1].fY + fC; in controlPtDistance()