translate method

Line translate({
  1. double x = 0,
  2. double y = 0,
})

Translate the line by x horizontally and y vertically

Implementation

Line translate({double x = 0, double y = 0}) {
  return Line(a.translate(x, y), b.translate(x, y));
}