Preliminary end to efvgt

This commit is contained in:
Grant Sanderson
2017-03-02 00:43:13 -08:00
parent 38dbcd6977
commit 3b47887637
2 changed files with 374 additions and 35 deletions

View File

@ -422,9 +422,10 @@ class Mobject(object):
sm1.interpolate(sm1, sm2, 1)
return self
def apply_complex_function(self, function):
def apply_complex_function(self, function, **kwargs):
return self.apply_function(
lambda (x, y, z) : complex_to_R3(function(complex(x, y)))
lambda (x, y, z) : complex_to_R3(function(complex(x, y))),
**kwargs
)
def reduce_across_dimension(self, points_func, reduce_func, dim):