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

/inkscape/src/helper/
H A Dgeom.cpp645 #define calc_sq_distance(A,B,C,D) ((A-C)*(A-C) + (B-D)*(B-D)) macro
687 d2 = calc_sq_distance(x1, y1, x2, y2);
688 d3 = calc_sq_distance(x4, y4, x3, y3);
705 if(d2 <= 0) d2 = calc_sq_distance(x2, y2, x1, y1);
706 else if(d2 >= 1) d2 = calc_sq_distance(x2, y2, x4, y4);
707 else d2 = calc_sq_distance(x2, y2, x1 + d2*dx, y1 + d2*dy);
709 if(d3 <= 0) d3 = calc_sq_distance(x3, y3, x1, y1);
710 else if(d3 >= 1) d3 = calc_sq_distance(x3, y3, x4, y4);
711 else d3 = calc_sq_distance(x3, y3, x1 + d3*dx, y1 + d3*dy);

Completed in 11 milliseconds