Incremental

This commit is contained in:
Sridhar Ramesh
2018-02-12 13:53:33 -08:00
parent 24dacb4b07
commit f84eeda546
2 changed files with 148 additions and 38 deletions

View File

@ -671,6 +671,10 @@ class DictAsObject(object):
def fdiv(a, b):
return np.true_divide(a,b)
def range_via_num_steps(start, end, num_steps, include_end = True):
num_points = num_steps + (1 if include_end else 0)
return [interpolate(start, end, fdiv(i, num_steps)) for i in range(num_points)]
# For debugging purposes
def print_mobject_family(mob, n_tabs = 0):