Lines Matching refs:x3

46                           double x3, double y3)  in init()  argument
50 m_end_x = x3; in init()
55 double dx2 = x3 - x2; in init()
70 double tmpx = (x1 - x2 * 2.0 + x3) * subdivide_step2; in init()
131 double x3, double y3) in init() argument
136 bezier(x1, y1, x2, y2, x3, y3); in init()
143 double x3, double y3, in recursive_bezier() argument
155 double x23 = (x2 + x3) / 2; in recursive_bezier()
160 double dx = x3-x1; in recursive_bezier()
162 double d = fabs(((x2 - x3) * dy - (y2 - y3) * dx)); in recursive_bezier()
182 da = fabs(atan2(y3 - y2, x3 - x2) - atan2(y2 - y1, x2 - x1)); in recursive_bezier()
213 else if(d >= 1) d = calc_sq_distance(x2, y2, x3, y3); in recursive_bezier()
226 recursive_bezier(x123, y123, x23, y23, x3, y3, level + 1); in recursive_bezier()
232 double x3, double y3) in bezier() argument
235 recursive_bezier(x1, y1, x2, y2, x3, y3, 0); in bezier()
236 m_points.add(point_d(x3, y3)); in bezier()
263 double x3, double y3, in init() argument
273 double dx2 = x3 - x2; in init()
275 double dx3 = x4 - x3; in init()
302 double tmp1x = x1 - x2 * 2.0 + x3; in init()
305 double tmp2x = (x2 - x3) * 3.0 - x1 + x4; in init()
379 double x3, double y3, in init() argument
385 bezier(x1, y1, x2, y2, x3, y3, x4, y4); in init()
392 double x3, double y3, in recursive_bezier() argument
405 double x23 = (x2 + x3) / 2; in recursive_bezier()
407 double x34 = (x3 + x4) / 2; in recursive_bezier()
423 double d3 = fabs(((x3 - x4) * dy - (y3 - y4) * dx)); in recursive_bezier()
436 d3 = calc_sq_distance(x4, y4, x3, y3); in recursive_bezier()
444 da1 = x3 - x1; in recursive_bezier()
457 if(d3 <= 0) d3 = calc_sq_distance(x3, y3, x1, y1); in recursive_bezier()
458 else if(d3 >= 1) d3 = calc_sq_distance(x3, y3, x4, y4); in recursive_bezier()
459 else d3 = calc_sq_distance(x3, y3, x1 + d3*dx, y1 + d3*dy); in recursive_bezier()
473 m_points.add(point_d(x3, y3)); in recursive_bezier()
492 da1 = fabs(atan2(y4 - y3, x4 - x3) - atan2(y3 - y2, x3 - x2)); in recursive_bezier()
498 m_points.add(point_d(x3, y3)); in recursive_bezier()
506 m_points.add(point_d(x3, y3)); in recursive_bezier()
526 da1 = fabs(atan2(y3 - y2, x3 - x2) - atan2(y2 - y1, x2 - x1)); in recursive_bezier()
532 m_points.add(point_d(x3, y3)); in recursive_bezier()
563 k = atan2(y3 - y2, x3 - x2); in recursive_bezier()
565 da2 = fabs(atan2(y4 - y3, x4 - x3) - k); in recursive_bezier()
587 m_points.add(point_d(x3, y3)); in recursive_bezier()
604 double x3, double y3, in bezier() argument
608 recursive_bezier(x1, y1, x2, y2, x3, y3, x4, y4, 0); in bezier()