def angle(self): """The angle in degrees this line makes to the horizontal.""" (x1, y1), (x2, y2) = self return math.degrees(math.atan2(y2 - y1, x2 - x1))