Lines Matching refs:y3
47 double x3, double y3,
51 bool cp2 = cross_product(x2, y2, x3, y3, x, y) < 0.0;
52 bool cp3 = cross_product(x3, y3, x1, y1, x, y) < 0.0;
151 double x3, double y3, double x4, double y4)
158 double dy2 = y4 - y3;
159 return ((x3 - x2) * dy1 - (y3 - y2) * dx1 < 0.0) !=
167 //double den = (x2-x1) * (y4-y3) - (y2-y1) * (x4-x3);
169 //double nom1 = (x4-x3) * (y1-y3) - (y4-y3) * (x1-x3);
170 //double nom2 = (x2-x1) * (y1-y3) - (y2-y1) * (x1-x3);
192 double x3, double y3,
202 double loc = cross_product(x1, y1, x2, y2, x3, y3);
205 if(cross_product(x1, y1, x2, y2, x3, y3) > 0.0)
210 calc_orthogonal(d, x2, y2, x3, y3, &dx2, &dy2);
211 calc_orthogonal(d, x3, y3, x1, y1, &dx3, &dy3);
216 *x++ = x3 + dx2; *y++ = y3 + dy2;
217 *x++ = x3 + dx3; *y++ = y3 + dy3;
224 double x3, double y3)
226 return (x1*y2 - x2*y1 + x2*y3 - x3*y2 + x3*y1 - x1*y3) * 0.5;