rotateLines function
Implementation
List<Line> rotateLines(List<Line> lines, PointD center, double degrees) => lines
.map((line) => Line(rotatePoint(line.source, center, degrees),
rotatePoint(line.target, center, degrees)))
.toList();