Rename parameters

This commit is contained in:
Simon Cozens 2021-02-18 11:38:40 +00:00
parent 2e211194c8
commit 6a223e5f93

View File

@ -850,9 +850,9 @@ def _line_t_of_pt(s, e, pt):
return -1
def _both_points_are_on_same_side_of_origin(a, b, c):
xDiff = (a[0] - c[0]) * (b[0] - c[0])
yDiff = (a[1] - c[1]) * (b[1] - c[1])
def _both_points_are_on_same_side_of_origin(a, b, origin):
xDiff = (a[0] - origin[0]) * (b[0] - origin[0])
yDiff = (a[1] - origin[1]) * (b[1] - origin[1])
return not (xDiff <= 0.0 and yDiff <= 0.0)