Translate the line by x horizontally and y vertically
x
y
Line translate({double x = 0, double y = 0}) { return Line(a.translate(x, y), b.translate(x, y)); }