Skip to content

Instantly share code, notes, and snippets.

@moon-goon
Created February 15, 2016 21:16
Show Gist options
  • Save moon-goon/b7fb6416346971b0cf32 to your computer and use it in GitHub Desktop.
Save moon-goon/b7fb6416346971b0cf32 to your computer and use it in GitHub Desktop.
import math
def destroy(x1,y1,r1,x2,y2,r2):
dist = math.sqrt((x2 - x1)**2 + (y2 - y1)**2)
if(dist - (r1+r2) < 0):
print("True")
else:
print("False")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment