Offset transform(Offset point, Size size) { return Offset(transformX(point.dx, size), transformY(point.dy, size)); }