centerScaled

Scale a Rect to have a size equivalent to the scaledSize. This will maintain the center position of the Rect.

For example, scaling a Rect(5, 6, 7, 8) by Size(2, 0.5) will result