centerCropRect

fun centerCropRect(sourceWidth: Int, sourceHeight: Int, targetAspect: Float): PixelRect

The centered crop rectangle that trims a sourceWidth x sourceHeight image to targetAspect (width / height). Pure, so the platform crop codecs share one definition and it can be unit-tested.