Lines Matching defs:x2

129         void clip_box(coord_type x1, coord_type y1, coord_type x2, coord_type y2)
131 m_clip_box = rect_type(x1, y1, x2, y2);
149 coord_type x2, coord_type y2,
157 ras.line(Conv::xi(x1), Conv::yi(y1), Conv::xi(x2), Conv::yi(y2));
169 coord_type tx2 = x2;
174 tx1 = x1 + Conv::mul_div(m_clip_box.y1-y1, x2-x1, y2-y1);
180 tx1 = x1 + Conv::mul_div(m_clip_box.y2-y1, x2-x1, y2-y1);
186 tx2 = x1 + Conv::mul_div(m_clip_box.y1-y1, x2-x1, y2-y1);
192 tx2 = x1 + Conv::mul_div(m_clip_box.y2-y1, x2-x1, y2-y1);
204 void line_to(Rasterizer& ras, coord_type x2, coord_type y2)
208 unsigned f2 = clipping_flags(x2, y2, m_clip_box);
213 m_x1 = x2;
228 line_clip_y(ras, x1, y1, x2, y2, f1, f2);
231 case 1: // x2 > clip.x2
232 y3 = y1 + Conv::mul_div(m_clip_box.x2-x1, y2-y1, x2-x1);
234 line_clip_y(ras, x1, y1, m_clip_box.x2, y3, f1, f3);
235 line_clip_y(ras, m_clip_box.x2, y3, m_clip_box.x2, y2, f3, f2);
238 case 2: // x1 > clip.x2
239 y3 = y1 + Conv::mul_div(m_clip_box.x2-x1, y2-y1, x2-x1);
241 line_clip_y(ras, m_clip_box.x2, y1, m_clip_box.x2, y3, f1, f3);
242 line_clip_y(ras, m_clip_box.x2, y3, x2, y2, f3, f2);
245 case 3: // x1 > clip.x2 && x2 > clip.x2
246 line_clip_y(ras, m_clip_box.x2, y1, m_clip_box.x2, y2, f1, f2);
249 case 4: // x2 < clip.x1
250 y3 = y1 + Conv::mul_div(m_clip_box.x1-x1, y2-y1, x2-x1);
256 case 6: // x1 > clip.x2 && x2 < clip.x1
257 y3 = y1 + Conv::mul_div(m_clip_box.x2-x1, y2-y1, x2-x1);
258 y4 = y1 + Conv::mul_div(m_clip_box.x1-x1, y2-y1, x2-x1);
261 line_clip_y(ras, m_clip_box.x2, y1, m_clip_box.x2, y3, f1, f3);
262 line_clip_y(ras, m_clip_box.x2, y3, m_clip_box.x1, y4, f3, f4);
267 y3 = y1 + Conv::mul_div(m_clip_box.x1-x1, y2-y1, x2-x1);
270 line_clip_y(ras, m_clip_box.x1, y3, x2, y2, f3, f2);
273 case 9: // x1 < clip.x1 && x2 > clip.x2
274 y3 = y1 + Conv::mul_div(m_clip_box.x1-x1, y2-y1, x2-x1);
275 y4 = y1 + Conv::mul_div(m_clip_box.x2-x1, y2-y1, x2-x1);
279 line_clip_y(ras, m_clip_box.x1, y3, m_clip_box.x2, y4, f3, f4);
280 line_clip_y(ras, m_clip_box.x2, y4, m_clip_box.x2, y2, f4, f2);
283 case 12: // x1 < clip.x1 && x2 < clip.x1
292 Conv::xi(x2), Conv::yi(y2));
294 m_x1 = x2;
320 void clip_box(coord_type x1, coord_type y1, coord_type x2, coord_type y2) {}
324 void line_to(Rasterizer& ras, coord_type x2, coord_type y2)
326 ras.line(m_x1, m_y1, x2, y2);
327 m_x1 = x2;