boundsTransform

fun boundsTransform(bounds: Rectangle): Matrix44(source)

The transform that maps 0..1 to bounds, which turns a paint in PaintUnits.BOUNDS units into one in PaintUnits.OBJECT units: boundsTransform(shape.bounds) * paintTransform