Lines Matching refs:dy
179 left_dy = left->dy;
192 right_dy = right->dy;
303 double k, /* x0 * dy - y0 * dx */
305 int dy,
314 if (dy < 0)
316 dy = -dy;
324 realk = x0 * dy - y0 * dx;
334 x = - (-xady / dy) - 1;
336 x = (xady - 1) / dy;
338 e = xady - x * dy;
343 edge->stepx = dx / dy;
344 edge->dx = dx % dy;
349 edge->stepx = - (-dx / dy);
350 edge->dx = -dx % dy;
351 e = dy - e + 1;
353 edge->dy = dy;
355 edge->e = e - dy; /* bias to compare against 0 instead of dy */
406 if ((int64_t)slopes[j].dy * slopes[i].dx > (int64_t)slopes[i].dy * slopes[j].dx)
420 if (slopes[s].dy != 0)
424 slopes[s].dx, slopes[s].dy,
451 if (slopes[s].dy != 0)
455 slopes[s].dx, slopes[s].dy, xi, yi, 1,
532 if (pLeft->dx > 0 || (pLeft->dx == 0 && pLeft->dy > 0))
534 if (pRight->dx > 0 || (pRight->dx == 0 && pRight->dy > 0))
537 denom = - pLeft->dx * (double)pRight->dy + pRight->dx * (double)pLeft->dy;
553 denom = - pLeft->dx * (double)pRight->dy + pRight->dx * (double)pLeft->dy;
564 pLeft->dy = -pLeft->dy;
572 pRight->dy = -pRight->dy;
577 slopes[0].dx = -pRight->dy;
578 slopes[0].dy = pRight->dx;
583 slopes[1].dx = pLeft->dy;
584 slopes[1].dy = -pLeft->dx;
592 my = (pLeft->dy * (pRight->xa * pRight->dy - pRight->ya * pRight->dx) -
593 pRight->dy * (pLeft->xa * pLeft->dy - pLeft->ya * pLeft->dx )) /
595 if (pLeft->dy != 0)
598 (double) pLeft->dx / (double) pLeft->dy;
603 (double) pRight->dx / (double) pRight->dy;
613 slopes[2].dy = pLeft->dy;
618 slopes[2].dy = -slopes[2].dy;
624 slopes[3].dy = pRight->dy;
629 slopes[3].dy = -slopes[3].dy;
636 double scale, dx, dy, adx, ady;
639 ady = dy = pRight->ya - pLeft->ya;
648 slopes[2].dy = (dy * 65536) / scale;
649 slopes[2].k = ((pLeft->xa + pRight->xa) * slopes[2].dy -
742 edge->e -= edge->dy; \
794 if (edge1->dy >= 0)
796 if (!edge1->dy)
812 if (edge2->dy >= 0)
814 if (!edge2->dy)
921 int dx, dy;
925 dx = -face->dy;
926 dy = face->dx;
935 if (dy < 0 || (dy == 0 && dx > 0))
938 dy = -dy;
941 if (dx == 0 && dy == 0)
942 dy = 1;
943 if (dy == 0)
950 edge->dy = 0;
956 y = miPolyBuildEdge (xa, ya, 0.0, dx, dy, face->x, face->y, !left, edge);
970 denom = - pLeft->dx * (double)pRight->dy + pRight->dx * (double)pLeft->dy;
990 int dx, dy;
994 dx = -face->dy;
995 dy = face->dx;
1002 if (dy < 0 || (dy == 0 && dx > 0))
1005 dy = -dy;
1010 if (dx == 0 && dy == 0)
1011 dy = 1;
1012 if (dy == 0)
1019 edge->dy = 0;
1025 y = miPolyBuildEdge (xa, ya, k, dx, dy, face->x, face->y, !left, edge);
1059 edge1.dy = -1;
1061 edge2.dy = -1;
1114 int dx, dy;
1126 dy = face->dy;
1128 if (dy == 0)
1138 lefts[0].dy = lw;
1147 rights[0].dy = lw;
1153 if (dy < 0) {
1154 dy = -dy;
1158 bottomy = yorgi + dy;
1167 lefts[0].e = -dy;
1169 lefts[0].dy = dy;
1175 rights[0].e = -dy;
1177 rights[0].dy = dy;
1203 k, dx, dy, xorgi, yorgi, 0, right);
1209 k, dx, dy, xorgi, yorgi, 1, left);
1217 topy = miPolyBuildEdge (xap, yap, xap * dx + yap * dy,
1218 -dy, dx, xorgi, yorgi, dx > 0, top);
1220 0.0, -dy, dx, xorgi, yorgi, dx < 0, bottom);
1226 k, dx, dy, xorgi, yorgi, 0, right);
1232 k, dx, dy, xorgi, yorgi, 1, left);
1240 topy = miPolyBuildEdge (xa, ya, 0.0, -dy, dx, xorgi, xorgi, dx > 0, top);
1241 bottomy = miPolyBuildEdge (xap, yap, xap * dx + yap * dy,
1242 -dy, dx, xorgi, xorgi, dx < 0, bottom);
1285 int dx, dy;
1315 dy = y2 - y1;
1324 leftFace->dy = dy;
1329 rightFace->dy = -dy;
1331 if (dy == 0)
1346 dy = lw;
1348 x, y, dx, dy);
1354 leftFace->k = (double) (lw * dy) / 2.0;
1362 dy = y2 - y;
1364 dy += ((lw + 1) >> 1);
1367 x, y, dx, dy);
1372 L = hypot ((double) dx, (double) dy);
1392 xa = r * dy;
1400 /* xa * dy - ya * dx */
1412 k, dx, dy, x1, y1, 0, right);
1415 k, dx, dy, x1, y1, 0, right);
1421 /* xa * dy - ya * dx */
1426 k, dx, dy, x1, y1, 1, left);
1429 k, dx, dy, x1, y1, 1, left);
1443 topy = miPolyBuildEdge (xap, yap, xap * dx + yap * dy,
1444 -dy, dx, x1, y1, dx > 0, top);
1447 topy = miPolyBuildEdge (xa, ya, 0.0, -dy, dx, x1, y1, dx > 0, top);
1455 bottomy = miPolyBuildEdge (xap, yap, xap * dx + yap * dy,
1456 -dy, dx, x2, y2, dx < 0, bottom);
1462 0.0, -dy, dx, x2, y2, dx < 0, bottom);
1687 int dy, dx;
1699 dy = y2 - y1;
1714 L = dy;
1717 if (dy < 0)
1719 L = -dy;
1723 else if (dy == 0)
1736 L = hypot ((double) dx, (double) dy);
1740 rdy = r * dy;
1744 /* All position comments are relative to a line with dx and dy > 0,
1748 slopes[V_TOP].dy = dy;
1751 slopes[V_RIGHT].dx = -dy;
1752 slopes[V_RIGHT].dy = dx;
1756 slopes[V_BOTTOM].dy = -dy;
1759 slopes[V_LEFT].dx = dy;
1760 slopes[V_LEFT].dy = -dx;
1778 slopes[V_LEFT].k = rdx * dx + rdy * dy;
1787 lcapFace.dy = dy;
1792 rcapFace.dy = -dy;
1799 dashDy = (dashRemain * dy) / L;
1810 slopes[V_RIGHT].k = vertices[V_RIGHT].x * dx + vertices[V_RIGHT].y * dy;
1830 slopes[V_LEFT].dy -
1842 slopes[V_RIGHT].dy -
1916 vertices[V_TOP].y -= dy;
1919 vertices[V_LEFT].y -= dy;
1936 slopes[V_RIGHT].dy -
1952 slopes[V_LEFT].dy -
1957 slopes[V_LEFT].k += dx * dx + dy * dy;
1999 leftFace->dy = dy;
2007 rightFace->dy = -dy;