Lines Matching defs:x2
53 // clip_box.x1 clip_box.x2
59 return (x > clip_box.x2) |
69 return (x > clip_box.x2) | ((x < clip_box.x1) << 2);
83 inline unsigned clip_liang_barsky(T x1, T y1, T x2, T y2,
89 double deltax = x2 - x1;
120 xout = clip_box.x2;
124 xin = clip_box.x2;
206 *x++ = x2;
234 bool clip_move_point(T x1, T y1, T x2, T y2,
242 if(x1 == x2)
246 bound = (flags & clipping_flags_x1_clipped) ? clip_box.x1 : clip_box.x2;
247 *y = (T)(double(bound - x1) * (y2 - y1) / (x2 - x1) + y1);
259 *x = (T)(double(bound - y1) * (x2 - x1) / (y2 - y1) + x1);
271 unsigned clip_line_segment(T* x1, T* y1, T* x2, T* y2,
275 unsigned f2 = clipping_flags(*x2, *y2, clip_box);
300 T tx2 = *x2;
308 if(*x1 == *x2 && *y1 == *y2)
316 if(!clip_move_point(tx1, ty1, tx2, ty2, clip_box, x2, y2, f2))
320 if(*x1 == *x2 && *y1 == *y2)