scalePoints function

List<Point<num>> scalePoints(
  1. List<Point<num>> points,
  2. double scale
)

Scales points to scale.

Implementation

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