Skip to content

Commit d0bce36

Browse files
committed
cleanup comments
1 parent fa6832b commit d0bce36

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/avb/interpolation.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import math
88
import sys
99

10-
EPSILON = 1e-10 #sys.float_info.epsilon
10+
EPSILON = 1e-10 # sys.float_info.epsilon
1111

1212
def lerp(a, b, t):
1313
return a + (b - a) * t
@@ -179,6 +179,7 @@ def bezier_interpolate(p0, p1, p2, p3, x):
179179
# solve for x = 0
180180
roots = bezier_cubic_roots(pa, pb, pc, pd)
181181
if not roots:
182+
# fall back to old method or decrease EPSILON precision?
182183
assert False
183184

184185
# use the root as t for y
@@ -195,7 +196,7 @@ def bezier_interpolate_old(p0, p1, p2, p3, t):
195196

196197
# approximate the correct t value,
197198
# maybe this is the newtonian method?
198-
# I kind of made it up, its slow but seems to work..
199+
# I kind of made it up, its slow but seems to work
199200
for i in range(20):
200201
x = cubic_bezier(p0[0], p1[0], p2[0], p3[0], guess_t)
201202
if x == t:

0 commit comments

Comments
 (0)