Lines Matching defs:P2
116 Point P2, Point dP2) {
118 Line Line2 = Line::from_origin_and_vector(P2, dP2);
125 double triarea = boxprod(P0, P1, P2);
129 return RatQuad(P0, 0.5*(P0+P2), P2, 1);
131 double tau0 = boxprod(P, P1, P2)/triarea;
132 double tau1 = boxprod(P0, P, P2)/triarea;
136 return RatQuad(P0, 0.5*(P0+P2), P2, 1);
143 return RatQuad(P0, P1, P2, w);
145 return RatQuad(P0, 0.5*(P0+P2), P2, 1);
150 RatQuad RatQuad::circularArc(Point P0, Point P1, Point P2) {
151 return RatQuad(P0, P1, P2, dot(unit_vector(P0 - P1), unit_vector(P0 - P2)));
1334 * P2: the final point of the arc
1338 Rect xAx::arc_bound (const Point & P1, const Point & Q, const Point & P2) const
1343 //std::cout << "BOUND: P2 = " << P2 << std::endl;
1345 Rect B(P1, P2);
1346 double Qside = signed_triangle_area (P1, Q, P2);
1381 double Mside = signed_triangle_area (P1, M[0], P2);
1396 double Mside = signed_triangle_area (P1, M[0], P2);
1402 double Mside = signed_triangle_area (P1, M[1], P2);
1408 double Mside = signed_triangle_area (P1, M[0], P2);
1411 Mside = signed_triangle_area (P1, M[1], P2);