Pre-matrix rewrite of chapter 11

This commit is contained in:
Grant Sanderson
2016-09-23 17:26:56 -07:00
parent 651c665fd7
commit 84967fd463
5 changed files with 1077 additions and 85 deletions

View File

@ -497,6 +497,9 @@ class Mobject(object):
def __iter__(self):
return iter(self.split())
def __len__(self):
return len(self.split())
def split(self):
result = [self] if len(self.points) > 0 else []
return result + self.submobjects