transform method

Point<double> transform(
  1. Point<num> point,
  2. double? scale
)

Implementation

Point<double> transform(Point point, double? scale) {
  scale ??= 1.0;
  final x = scale * (a * point.x + b);
  final y = scale * (c * point.y + d);
  return Point(x, y);
}