mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Fixed ComplexHomotopy
This commit is contained in:
parent
24c387e7cb
commit
f28d58b2f0
1 changed files with 3 additions and 4 deletions
|
@ -41,11 +41,10 @@ class ComplexHomotopy(Homotopy):
|
|||
"""
|
||||
Complex Hootopy a function Cx[0, 1] to C
|
||||
"""
|
||||
def homotopy(event):
|
||||
x, y, z, t = event
|
||||
c = complex_homotopy((complex(x, y), t))
|
||||
def homotopy(x, y, z, t):
|
||||
c = complex_homotopy(complex(x, y), t)
|
||||
return (c.real, c.imag, z)
|
||||
Homotopy.__init__(self, homotopy, mobject, *args, **kwargs)
|
||||
Homotopy.__init__(self, homotopy, mobject, **kwargs)
|
||||
|
||||
|
||||
class PhaseFlow(Animation):
|
||||
|
|
Loading…
Add table
Reference in a new issue