mirror of
https://github.com/3b1b/manim.git
synced 2025-08-01 17:29:06 +08:00
Bug fixes to implementation of Succession animations
This commit is contained in:
@ -304,6 +304,12 @@ def digest_locals(obj, keys = None):
|
||||
def interpolate(start, end, alpha):
|
||||
return (1-alpha)*start + alpha*end
|
||||
|
||||
def mid(start, end):
|
||||
return (start + end)/2.0
|
||||
|
||||
def anti_interpolate(start, end, value):
|
||||
return np.true_divide(value - start, end - start)
|
||||
|
||||
def clamp(lower, upper, val):
|
||||
if val < lower:
|
||||
return lower
|
||||
|
Reference in New Issue
Block a user