Oops, this has a different interface to the curve-based ones

This commit is contained in:
Simon Cozens 2021-02-18 11:20:45 +00:00
parent 01957a9b94
commit c17b1c9e9f

View File

@ -1127,7 +1127,7 @@ def segmentSegmentIntersections(seg1, seg2):
else:
return curveLineIntersections(seg1, seg2)
elif len(seg1) == 2 and len(seg2) == 2:
return lineLineIntersections(seg1, seg2)
return lineLineIntersections(*seg1, *seg2)
raise ValueError("Couldn't work out which intersection function to use")