Scales points to scale.
points
scale
List<Point<num>> scalePoints(List<Point<num>> points, double scale) { return points.map((p) => Point(p.x * scale, p.y * scale)).toList(); }