scalePointsXY function
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();
}
Scales points
to scaleX
and scaleY
.
List<Point<num>> scalePointsXY(
List<Point<num>> points, double scaleX, double scaleY) {
return points.map((p) => Point(p.x * scaleX, p.y * scaleY)).toList();
}