Skip to content

Commit 88e2afb

Browse files
committed
Add missing function
1 parent a1c62cf commit 88e2afb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Lib/booleanOperations/flatten.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,6 +1154,12 @@ def _mid(pt1, pt2):
11541154
(x0, y0), (x1, y1) = pt1, pt2
11551155
return 0.5 * (x0 + x1), 0.5 * (y0 + y1)
11561156

1157+
def _getLinePoint(t, pt0, pt1):
1158+
if t == 0:
1159+
return pt0
1160+
if t == 1:
1161+
return pt1
1162+
return pt0[0] + (pt1[0]-pt0[0]) * t, pt0[1] + (pt1[1]-pt0[1]) * t
11571163

11581164
def _getCubicPoint(t, pt0, pt1, pt2, pt3):
11591165
if t == 0:

0 commit comments

Comments
 (0)