From 6a223e5f93d85b03365703039933b76a4f84b9ef Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Thu, 18 Feb 2021 11:38:40 +0000 Subject: [PATCH] Rename parameters --- Lib/fontTools/misc/bezierTools.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/fontTools/misc/bezierTools.py b/Lib/fontTools/misc/bezierTools.py index 7144e1987..71c2ecc7d 100644 --- a/Lib/fontTools/misc/bezierTools.py +++ b/Lib/fontTools/misc/bezierTools.py @@ -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)