Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Removed range_via_num_steps, which was redundant on top of np.linspace

Sridhar Ramesh5c0bbbc4be4f
diff --git a/helpers.py b/helpers.py
index 43d8a7f98..80ee9e331 100644
--- a/helpers.py
+++ b/helpers.py
@@ -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):