mirror of
https://github.com/3b1b/manim.git
synced 2025-08-01 17:29:06 +08:00
Fixed ComplexHomotopy
This commit is contained in:
@ -41,11 +41,10 @@ class ComplexHomotopy(Homotopy):
|
|||||||
"""
|
"""
|
||||||
Complex Hootopy a function Cx[0, 1] to C
|
Complex Hootopy a function Cx[0, 1] to C
|
||||||
"""
|
"""
|
||||||
def homotopy(event):
|
def homotopy(x, y, z, t):
|
||||||
x, y, z, t = event
|
c = complex_homotopy(complex(x, y), t)
|
||||||
c = complex_homotopy((complex(x, y), t))
|
|
||||||
return (c.real, c.imag, z)
|
return (c.real, c.imag, z)
|
||||||
Homotopy.__init__(self, homotopy, mobject, *args, **kwargs)
|
Homotopy.__init__(self, homotopy, mobject, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
class PhaseFlow(Animation):
|
class PhaseFlow(Animation):
|
||||||
|
Reference in New Issue
Block a user