245
252
segment_intersection_2d(x[i], y[i], x[i + 1], y[i + 1], x[j],
246
253
y[j], x[j + 1], y[j + 1], &x1, &y1,
248
256
/* res2 = segment_intersection_2d_e(x[i], y[i], x[i+1], y[i+1], x[j], y[j], x[j+1], y[j+1], &x1_, &y1_, &x2_, &y2_);
249
257
if ((res != res2) || ((res != 0) && (x1!=x1_ || y1!=y1_)) ) {
250
G_debug(0, "exact=%d orig=%d", res, res2);
258
G_debug(1, "exact=%d orig=%d", res, res2);
251
259
segment_intersection_2d_test(x[i], y[i], x[i+1], y[i+1], x[j], y[j], x[j+1], y[j+1], &x1, &y1, &x2, &y2);