fitRectangle
fun fitRectangle(src: Rectangle, dest: Rectangle, horizontalPosition: Double = 0.0, verticalPosition: Double = 0.0, fitMethod: FitMethod = FitMethod.Cover): Pair<Rectangle, Rectangle>(source)
Transforms src and dest into a Pair in which one of the two rectangles is modified to conform with the fitMethod. It uses horizontalPosition and verticalPosition to control positioning / cropping.