Line now has a constructor Line(p1, p2)

This commit is contained in:
David Vierra 2015-05-13 04:52:25 -10:00
parent 9a440c92cf
commit c285151bcf

View File

@ -240,6 +240,10 @@ class Line(Symbol):
p2: Vector
"""
def __init__(self, p1, p2, **kw):
super(Line, self).__init__(**kw)
self.p1 = p1
self.p2 = p2
def renderBlocks(self):
for x, y, z in bresenham(self.p1, self.p2):