Home
last modified time | relevance | path

Searched refs:calc_sq_distance (Results 1 – 2 of 2) sorted by relevance

/haiku/src/libs/agg/src/
H A Dagg_curves.cpp201 d = calc_sq_distance(x1, y1, x2, y2); in recursive_bezier()
212 if(d <= 0) d = calc_sq_distance(x2, y2, x1, y1); in recursive_bezier()
213 else if(d >= 1) d = calc_sq_distance(x2, y2, x3, y3); in recursive_bezier()
214 else d = calc_sq_distance(x2, y2, x1 + d*dx, y1 + d*dy); in recursive_bezier()
435 d2 = calc_sq_distance(x1, y1, x2, y2); in recursive_bezier()
436 d3 = calc_sq_distance(x4, y4, x3, y3); in recursive_bezier()
453 if(d2 <= 0) d2 = calc_sq_distance(x2, y2, x1, y1); in recursive_bezier()
454 else if(d2 >= 1) d2 = calc_sq_distance(x2, y2, x4, y4); in recursive_bezier()
455 else d2 = calc_sq_distance(x2, y2, x1 + d2*dx, y1 + d2*dy); in recursive_bezier()
457 if(d3 <= 0) d3 = calc_sq_distance(x3, y3, x1, y1); in recursive_bezier()
[all …]
/haiku/headers/libs/agg/
H A Dagg_math.h65 AGG_INLINE double calc_sq_distance(double x1, double y1, double x2, double y2) in calc_sq_distance() function
114 return calc_sq_distance(x, y, x1, y1); in calc_segment_point_sq_distance()
119 return calc_sq_distance(x, y, x2, y2); in calc_segment_point_sq_distance()
121 return calc_sq_distance(x, y, x1 + u * (x2 - x1), y1 + u * (y2 - y1)); in calc_segment_point_sq_distance()