mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Removed range_via_num_steps, which was redundant on top of np.linspace
This commit is contained in:
parent
bdc11cac51
commit
5c0bbbc4be
1 changed files with 0 additions and 4 deletions
|
@ -689,10 +689,6 @@ 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):
|
||||
|
|
Loading…
Add table
Reference in a new issue