transform method

UPoint transform(
  1. UPoint point,
  2. double? scale
)

Implementation

UPoint transform(UPoint point, double? scale) {
  scale ??= 1.0;
  var x = scale * (a * point.x + b);
  var y = scale * (c * point.y + d);
  return UPoint(x, y);
}