add Line constructor

This commit is contained in:
Josh Holtrop committed 2011-03-28 15:30:26 -04:00
1 parent d33d9f0f1a
commit f1282e6cb6
1 file changed
+5 -1
+5 -1
View File
@@ -1,3 +1,7 @@
class Line(Shape): class Line(Shape):
pass def __init__(self, x0, y0, x1, y1):
self.x0 = x0
self.y0 = y0
self.x1 = x1
self.y1 = y1