Rectangular Transform
constructor()
Creates an identity transform.
constructor(oldRect: Rectangle2D, newRect: Rectangle2D)
Creates a RectangularTransform
that transforms from one rectangle to another.
Parameters
old Rect
the initial rectangle.
new Rect
the final (transformed) rectangle.
Creates a RectangularTransform
.
Parameters
sx
the scaleX factor
sy
the scaleY factor
tx
the x-translation
ty
the y-translation