Translate pints in x and y.
pints
x
y
List<Point<num>> translatePoints(List<Point<num>> points, num x, num y) { return points.map((p) => Point(p.x + x, p.y + y)).toList(); }