This commit is contained in:
Simon Cozens 2021-09-23 08:10:00 +01:00
parent 13f6cbdaba
commit ed0cf2fa92

View File

@ -883,7 +883,7 @@ def _line_t_of_pt(s, e, pt):
# Line is a point!
return -1
# Use the largest
if abs(sx - ex) > abs(sy - ex):
if abs(sx - ex) > abs(sy - ey):
return (px - sx) / (ex - sx)
else:
return (py - sy) / (ey - sy)