Lines Matching refs:d2
674 double d2 = fabs(((x2 - x4) * dy - (y2 - y4) * dx));
678 switch((int(d2 > curve_collinearity_epsilon) << 1) +
687 d2 = calc_sq_distance(x1, y1, x2, y2);
695 d2 = k * (da1*dx + da2*dy);
699 if(d2 > 0 && d2 < 1 && d3 > 0 && d3 < 1)
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);
713 if(d2 > d3)
715 if(d2 < m_distance_tolerance_square)
768 if(d2 * d2 <= m_distance_tolerance_square * (dx*dx + dy*dy))
802 if((d2 + d3)*(d2 + d3) <= m_distance_tolerance_square * (dx*dx + dy*dy))