Scale

data class Scale(val horizontal: Float = 1.0f, val vertical: Float = 1.0f, val pivotX: Float = 0.0f, val pivotY: Float = 0.0f) : Transform

Scale by horizontal and vertical factors. If pivotX or pivotY is specified as non-zero, then the scale will be centered on that location.

Constructors

Link copied to clipboard
constructor(horizontal: Float = 1.0f, vertical: Float = 1.0f, pivotX: Float = 0.0f, pivotY: Float = 0.0f)

Properties

Link copied to clipboard
val horizontal: Float = 1.0f
Link copied to clipboard
val pivotX: Float = 0.0f
Link copied to clipboard
val pivotY: Float = 0.0f
Link copied to clipboard
val vertical: Float = 1.0f

Functions

Link copied to clipboard

Converts a pivoted scale into an ordered transformation of translate, scale, translate.