Minor changes everywhere, incremental progress on WindingNumber

This commit is contained in:
Sridhar Ramesh
2018-02-06 12:44:38 -08:00
parent 5ea41c00ee
commit 6158ba6dcc
6 changed files with 133 additions and 58 deletions

View File

@ -544,12 +544,16 @@ def wiggle(t, wiggles = 2):
def squish_rate_func(func, a = 0.4, b = 0.6):
def result(t):
if a == b:
return a
if t < a:
return func(0)
elif t > b:
return func(1)
else:
return func((t-a)/(b-a))
return result
# Stylistically, should this take parameters (with default values)?