create

fun create(oldRect: Rectangle2D, newRect: Rectangle2D): AffineTransform

Creates an AffineTransform that maps one argument to another.

Return

an AffineTransform that maps from the old to the new rectangle.

Parameters

oldRect

the initial rectangle.

newRect

the final (transformed) rectangle.