Lines Matching defs:y4
542 * Check that (x1, y1) -> (x2, y2) hits (x3, y3) -> (x4, y4).
549 double x3, double y3, double x4, double y4,
552 double denominator_term = (y4 - y3)*(x2 - x1) - (y2 - y1)*(x4 - x3);
553 double numerator_term = (x3 - x1)*(y4 - y3) + (x4 - x3)*(y1 - y3);
569 if (((y4 - y3) < 0.005) && ((y4 - y3) > -0.005))
572 k_line = ((y1 - y3) + line_constant*(y2 - y1))/(y4 - y3);
710 * the line touches the ellipse in values x4, y4.
720 double *x4, double *y4)
734 *y4 = (double)(y1 - b1);
736 *y4 = (double)(y1 + b1);
745 *y4 = (double)(y1 - sqrt((b1*b1 - (((x2-x1)*(x2-x1))*(b1*b1)/(a1*a1)))));
747 *y4 = (double)(y1 + sqrt((b1*b1 - (((x2-x1)*(x2-x1))*(b1*b1)/(a1*a1)))));
787 *y4 = ellipse1_y;