Lines Matching refs:fX
33 return SkScalarAve(src[0].fX, src[1].fX); in sect_with_horizontal()
37 double X0 = src[0].fX; in sect_with_horizontal()
39 double X1 = src[1].fX; in sect_with_horizontal()
52 SkScalar dx = src[1].fX - src[0].fX; in sect_with_vertical()
58 double X0 = src[0].fX; in sect_with_vertical()
60 double X1 = src[1].fX; in sect_with_vertical()
131 if (tmp[0].fX < tmp[1].fX) { in IntersectLine()
140 if ((tmp[index1].fX <= clip.fLeft || tmp[index0].fX >= clip.fRight)) { in IntersectLine()
143 if (tmp[0].fX != tmp[1].fX || tmp[0].fX < clip.fLeft || tmp[0].fX > clip.fRight) { in IntersectLine()
148 if (tmp[index0].fX < clip.fLeft) { in IntersectLine()
151 if (tmp[index1].fX > clip.fRight) { in IntersectLine()
204 SkASSERT(is_between_unsorted(tmp[index0].fX, pts[0].fX, pts[1].fX)); in ClipLine()
208 SkASSERT(is_between_unsorted(tmp[index1].fX, pts[0].fX, pts[1].fX)); in ClipLine()
219 if (pts[0].fX < pts[1].fX) { in ClipLine()
229 if (tmp[index1].fX <= clip.fLeft) { // wholly to the left in ClipLine()
230 tmp[0].fX = tmp[1].fX = clip.fLeft; in ClipLine()
233 } else if (tmp[index0].fX >= clip.fRight) { // wholly to the right in ClipLine()
237 tmp[0].fX = tmp[1].fX = clip.fRight; in ClipLine()
244 if (tmp[index0].fX < clip.fLeft) { in ClipLine()
254 if (tmp[index1].fX > clip.fRight) { in ClipLine()