Lines Matching refs:intersection
44 intersect(XLineDouble *l1, XLineDouble *l2, XPointDouble *intersection);
137 intersect(XLineDouble *l1, XLineDouble *l2, XPointDouble *intersection)
152 intersection->y = (b2 - b1) / (m1 - m2);
153 intersection->x = m1 * intersection->y + b1;
155 check = m2 * intersection->y + b2;
156 if (check >= intersection->x)
157 check -= intersection->x;
159 check = intersection->x - check;
161 fprintf(stderr, "intersect: intersection is off by %f\n", check);