More hilbert work, including simple new Grid mobject

This commit is contained in:
Grant Sanderson
2015-12-19 13:06:09 -08:00
parent 32fe2e9373
commit d5c70fe0cb
8 changed files with 109 additions and 21 deletions

View File

@ -500,6 +500,7 @@ class Mobject1D(Mobject):
def add_line(self, start, end, color = None):
start, end = map(np.array, [start, end])
length = np.linalg.norm(end - start)
if length == 0:
points = [start]