rebase onto master

This commit is contained in:
Maximilian Huettenrauch
2021-12-01 14:55:05 +01:00
parent 4fd17e8a90
commit ebca59b4bd
4 changed files with 285 additions and 1 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ def intersect(A, B, C, D):
def check_self_collision(line_points):
"""Checks whether line segments and intersect"""
"""Checks whether line segments intersect"""
for i, line1 in enumerate(line_points):
for line2 in line_points[i + 2:, :, :]:
if intersect(line1[0], line1[-1], line2[0], line2[-1]):