Skip to content

Commit fab814e

Browse files
committed
Use abs (negative radii are allowed)
1 parent 6b5d52b commit fab814e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/geometry.asy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6318,7 +6318,7 @@ point radicalcenter(circle c1, circle c2, bool abort=true)
63186318
having the same power of a point with respect to both circles).</documentation></function></asyxml>*/
63196319
// TODO Consider degenerate circle(s)
63206320
if (c1.C == c2.C) {
6321-
if (c1.r == c2.r && !abort) {
6321+
if (abs(c1.r) == abs(c2.r) && !abort) {
63226322
warning("radicalcenter", "The common center is returned as the most convenient point
63236323
for two circles which are both concentric and congruent.");
63246324
return c1.C;

0 commit comments

Comments
 (0)