From f1282e6cb6a9c643e6f4ac162a69331017d5c0f0 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Mon, 28 Mar 2011 15:30:26 -0400 Subject: [PATCH] add Line constructor --- Line.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Line.py b/Line.py index a77ebef..0086ccb 100644 --- a/Line.py +++ b/Line.py @@ -1,3 +1,7 @@ class Line(Shape): - pass + def __init__(self, x0, y0, x1, y1): + self.x0 = x0 + self.y0 = y0 + self.x1 = x1 + self.y1 = y1