genetics code (untested)

This commit is contained in:
2019-10-22 15:41:12 +02:00
parent 65808e4c62
commit 80319712d0
6 changed files with 89 additions and 15 deletions

View File

@@ -17,7 +17,6 @@ def get_line_feats(point1, point2):
return a,b
def segments_intersection(line1, line2):
p1,p2 = line1
p3,p4 = line2
@@ -42,6 +41,5 @@ def segments_intersection(line1, line2):
return None # intersect is outside segments
def distance(point1, point2):
return math.hypot(point1[0] - point2[0], point1[1] - point2[1])