Lines Matching refs:y1
52 PolyEdge() : y0(0), y1(0), x(0), dx(0), next(0) {}
53 //PolyEdge(int _y0, int _y1, int _x, int _dx) : y0(_y0), y1(_y1), x(_x), dx(_dx) {}
55 int y0, y1;
82 int64 x1, y1, x2, y2;
89 x1 = pt1.x; y1 = pt1.y; x2 = pt2.x; y2 = pt2.y;
90 c1 = (x1 < 0) + (x1 > right) * 2 + (y1 < 0) * 4 + (y1 > bottom) * 8;
99 x1 += (a - y1) * (x2 - x1) / (y2 - y1);
100 y1 = a;
106 x2 += (a - y2) * (x2 - x1) / (y2 - y1);
115 y1 += (a - x1) * (y2 - y1) / (x2 - x1);
122 y2 += (a - x2) * (y2 - y1) / (x2 - x1);
128 assert( (c1 & c2) != 0 || (x1 | y1 | x2 | y2) >= 0 );
131 pt1.y = (int)y1;
1236 edge.y1 = pt1.y;
1242 edge.y1 = pt0.y;
1277 assert( e1.y0 < e1.y1 );
1280 int x1 = e1.x + (e1.y1 - e1.y0) * e1.dx;
1282 y_max = std::max( y_max, e1.y1 );
1314 if( last && last->y1 == y )