Lines Matching defs:x2

451  * (x1, y1), (x2, y2) -  fixed point coordinates of the endpoints
473 void ProcessFixedLine(ProcessHandler* hnd,jint x1,jint y1,jint x2,jint y2,
478 jint c = ((x1 ^ x2) | (y1 ^ y2));
491 if (x1 == x2 || y1 == y2) {
493 rx2 = x2 + MDP_HALF_MULT;
498 jint dx = x2 - x1;
501 /* Floor of x1, y1, x2, y2 */
504 jint fx2 = x2 & MDP_W_MASK;
515 /* Boundary at the direction from (x1,y1) to (x2,y2) */
516 jint bx1 = (x1 < x2) ? fx1 + MDP_MULT : fx1;
533 if (fx2 == x2 || fy2 == y2) {
537 rx2 = x2 + MDP_HALF_MULT;
540 /* Boundary at the direction from (x2,y2) to (x1,y1) */
541 jint bx2 = (x1 > x2) ? fx2 + MDP_MULT : fx2;
545 jint cross = y2 + ((bx2 - x2)*dy)/dx;
551 cross = x2 + ((by2 - y2)*dx)/dy;
602 jint x2 = x0;
636 x1 = x2;
639 x2 = x0w + (px >> shift);
648 /* Bounding x2 by xe */
649 if (((xe-x2)^dx) < 0) {
650 x2 = xe;
658 hnd->pProcessFixedLine(hnd, x1, y1, x2, y2, pixelInfo, checkBounds,
667 hnd->pProcessFixedLine(hnd, x2, y2, xe, ye, pixelInfo, checkBounds,
1047 jint x2 = x0;
1123 x1 = x2;
1126 x2 = x0w + (px >> shift);
1135 /* Bounding x2 by xe */
1136 if (((xe-x2)^dx) < 0) {
1137 x2 = xe;
1145 hnd->pProcessFixedLine(hnd, x1, y1, x2, y2, pixelInfo, checkBounds,
1148 hnd->pProcessFixedLine(hnd, x2, y2, xe, ye, pixelInfo, checkBounds,
1374 jfloat x2 = coord2[0];
1385 TESTANDCLIP(yMin, yMax, y1, x1, y2, x2, jfloat, res);
1388 TESTANDCLIP(yMin, yMax, y2, x2, y1, x1, jfloat, res);
1395 x1, y1, x2, y2, jfloat, res);
1399 x2, y2, x1, y1, jfloat, res);
1405 X2 = (jint)(x2*MDP_MULT);
1423 CLIPCLAMP(xMin, xMax, x1, y1, x2, y2, x3, y3, jfloat, res);
1440 CLIPCLAMP(xMin, xMax, x2, y2, x1, y1, x3, y3, jfloat, res);
1445 X2 = (jint)(x2*MDP_MULT);
2094 void StoreFixedLine(ProcessHandler* hnd,jint x1,jint y1,jint x2,jint y2,
2118 TESTANDCLIP(outYMin, outYMax, y1, x1, y2, x2, jint, res);
2120 TESTANDCLIP(outYMin, outYMax, y2, x2, y1, x1, jint, res);
2125 CLIPCLAMP(outXMin, outXMax, x1, y1, x2, y2, x3, y3, jint, res);
2137 CLIPCLAMP(outXMin, outXMax, x2, y2, x1, y1, x3, y3, jint, res);
2142 StoreFixedLine(hnd, x1, y1, x2, y2, pixelInfo,
2147 StoreFixedLine(hnd, x2, y2, x3, y3, pixelInfo,
2162 FD_ADD_POINT(pfd, x2, y2, JNI_FALSE);