Skip to content

Commit

Permalink
Close #4
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobECook committed May 4, 2023
1 parent 7c44f29 commit 8be8e42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Circles/src/edu/nmsu/cs/circles/Circle2.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public boolean intersects(Circle other)
double d;
d = Math.sqrt(Math.pow(center.x - other.center.x, 2) +
Math.pow(center.y - other.center.y, 2));
if (d < radius)
if ((d < radius) || (d < other.radius))
return true;
else
return false;
Expand Down

0 comments on commit 8be8e42

Please sign in to comment.