TransformOrigin
The point scale and rotation are applied around, as fractions of the content's own painted box.
Both fractions are measured from the box's left and top edge whatever the reading order: an origin is a point on the content, and placement has already resolved right-to-left by the time anything paints.
A fraction outside 0f..1f names a point outside the box, which scales the content away from a pivot it does not cover.
Types
Properties
Functions
Link copied to clipboard
The pivotFractionX component, for destructuring.
Link copied to clipboard
The pivotFractionY component, for destructuring.
Link copied to clipboard
fun copy(pivotFractionX: Float = this.pivotFractionX, pivotFractionY: Float = this.pivotFractionY): TransformOrigin
A copy of this origin, overriding pivotFractionX and/or pivotFractionY.
Link copied to clipboard
fun createTransform(box: Rectangle2D, scaleX: Float = 1.0f, scaleY: Float = 1.0f, rotationZ: Float = 0.0f): AffineTransform