Lines Matching defs:x2

135                                               int x2, int y2, int [] pixelInfo,
553 * (x1, y1), (x2, y2) - fixed point coordinates of the endpoints
575 public void processFixedLine(int x1, int y1, int x2, int y2,
580 int c = ((x1 ^ x2) | (y1 ^ y2));
593 if (x1 == x2 || y1 == y2) {
595 rx2 = x2 + MDP_HALF_MULT;
600 int dx = x2 - x1;
603 /* Floor of x1, y1, x2, y2 */
606 int fx2 = x2 & MDP_W_MASK;
617 /* Boundary at the direction from (x1,y1) to (x2,y2) */
618 int bx1 = (x1 < x2) ? fx1 + MDP_MULT : fx1;
635 if (fx2 == x2 || fy2 == y2) {
639 rx2 = x2 + MDP_HALF_MULT;
642 /* Boundary at the direction from (x2,y2) to (x1,y1) */
643 int bx2 = (x1 > x2) ? fx2 + MDP_MULT : fx2;
647 int cross = y2 + ((bx2 - x2)*dy)/dx;
653 cross = x2 + ((by2 - y2)*dx)/dy;
705 int x2 = x0;
739 x1 = x2;
742 x2 = x0w + (px >> shift);
751 /* Bounding x2 by xe */
752 if (((xe-x2)^dx) < 0) {
753 x2 = xe;
761 hnd.processFixedLine(x1, y1, x2, y2, pixelInfo, checkBounds, false);
770 hnd.processFixedLine(x2, y2, xe, ye, pixelInfo, checkBounds, false);
1039 int x2 = x0;
1100 x1 = x2;
1103 x2 = x0w + (px >> shift);
1112 /* Bounding x2 by xe */
1113 if (((xe-x2)^dx) < 0) {
1114 x2 = xe;
1122 hnd.processFixedLine(x1, y1, x2, y2, pixelInfo, checkBounds,
1125 hnd.processFixedLine(x2, y2, xe, ye, pixelInfo, checkBounds,
1360 float x2, float y2, int[] pixelInfo) {
1365 float c[] = new float[]{x1, y1, x2, y2, 0, 0};
1375 // TESTANDCLIP(yMin, yMax, y1, x1, y2, x2, res);
1381 // TESTANDCLIP(yMin, yMax, y2, x2, y1, x1, res);
1390 // TESTANDCLIP(xMin, xMax, x1, y1, x2, y2, res);
1396 // TESTANDCLIP(xMin, xMax, x2, y2, x1, y1, res);
1424 * CLIPCLAMP(xMin, xMax, x1, y1, x2, y2, x3, y3, res);
1444 * CLIPCLAMP(xMin, xMax, x2, y2, x1, y1, x3, y3, res);
2027 public void processFixedLine(int x1, int y1, int x2, int y2,
2046 int c[] = new int[]{x1, y1, x2, y2, 0, 0};
2053 * TESTANDCLIP(outYMin, outYMax, y1, x1, y2, x2, res);
2059 * TESTANDCLIP(outYMin, outYMax, y2, x2, y1, x1, res);
2068 * CLIPCLAMP(outXMin, outXMax, x1, y1, x2, y2, x3, y3, res);
2084 * CLIPCLAMP(outXMin, outXMax, x2, y2, x1, y1, x3, y3, res);
2110 fd.addPoint(x2, y2, false);