# RectangularTransform

constructor()

Creates an identity transform.

constructor(oldRect: Rectangle2D, newRect: Rectangle2D)

Creates a `RectangularTransform` that transforms from one rectangle to another.

#### Parameters

oldRect

the initial rectangle.

newRect

the final (transformed) rectangle.

constructor(sx: Double, sy: Double, tx: Double, ty: Double)

Creates a `RectangularTransform`.

#### Parameters

sx

the scaleX factor

sy

the scaleY factor

tx

the x-translation

ty

the y-translation