| 37 | assert(tangent(ip, A, rA, P.first, Q.first) == 2); |
| 38 | assert(tangent(ip, B, rB, P.second, Q.second) == 2); } |
| 39 | pair<point,double> circumcircle(point a, point b, point c) { |
| 40 | b -= a, c -= a; |
| 41 | point p = perp(b*norm(c)-c*norm(b))/2.0/cross(b, c); |
| 42 | return make_pair(a+p,abs(p)); } |
| 43 | // vim: cc=60 ts=2 sts=2 sw=2: |