Lines Matching defs:x1
1294 float x0, y0, x1, y1, x2, y2;
1298 x1 = srcPt[2].fX - srcPt[1].fX;
1305 float denom = SkScalarMulDiv(x1, y2, x2) - y1;
1309 a1 = (SkScalarMulDiv(x0 - x1, y2, x2) - y0 + y1) / denom;
1311 float denom = x1 - SkScalarMulDiv(y1, x2, y2);
1315 a1 = (x0 - x1 - SkScalarMulDiv(y0 - y1, x2, y2)) / denom;
1318 /* check if abs(x1) > abs(y1) */
1319 if ( x1 > 0 ? y1 > 0 ? x1 > y1 : x1 > -y1 : y1 > 0 ? -x1 > y1 : x1 < y1) {
1320 float denom = y2 - SkScalarMulDiv(x2, y1, x1);
1324 a2 = (y0 - y2 - SkScalarMulDiv(x0 - x2, y1, x1)) / denom;
1326 float denom = SkScalarMulDiv(y2, x1, y1) - x2;
1330 a2 = (SkScalarMulDiv(y0 - y2, x1, y1) - x0 + x2) / denom;