RectangularTransform

This is a transform that only scales and translates. It is a subset of an AffineTransform, except with no rotation/shearing.

Constructors

Link copied to clipboard
constructor()

Creates an identity transform.

constructor(oldRect: Rectangle2D, newRect: Rectangle2D)

Creates a RectangularTransform that transforms from one rectangle to another.

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

Creates a RectangularTransform.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun createAffineTransform(): AffineTransform

Converts this to an AffineTransform.

Link copied to clipboard

Creates a transform that is the inverse of this one.

Link copied to clipboard
fun scale(sx: Double, sy: Double)

Scales this transform.

Link copied to clipboard
fun setTransform(oldRect: Rectangle2D, newRect: Rectangle2D)

Defines this transform.

Link copied to clipboard
fun transform(src: Point2D): Point2D
fun transform(src: Rectangle2D): Rectangle2D

Transforms the source argument.

Link copied to clipboard
fun translate(tx: Double, ty: Double)

Translates this transform.