scalePointsXY function

List<Point<num>> scalePointsXY(
  1. List<Point<num>> points,
  2. double scaleX,
  3. double scaleY
)

Scales points to scaleX and scaleY.

Implementation

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