public class ScaleFactor(public val packedValue: Long)
Holds 2 dimensional scaling factors for horizontal and vertical axes
Properties
scaleX
public inline val scaleX: Float
Returns the scale factor to apply along the horizontal axis
scaleY
public inline val scaleY: Float
Returns the scale factor to apply along the vertical axis
Functions
component1
@Stable public inline operator fun component1(): Float
component2
@Stable public inline operator fun component2(): Float
copy
public fun copy(scaleX: Float = this.scaleX, scaleY: Float = this.scaleY): ScaleFactor
Returns a copy of this ScaleFactor instance optionally overriding the scaleX or scaleY parameters
times
public operator fun times(operand: Float): ScaleFactor
Multiplication operator.
Returns a ScaleFactor with scale x and y values multiplied by the operand
div
public operator fun div(operand: Float): ScaleFactor
Division operator.
Returns a ScaleFactor with scale x and y values divided by the operand
Members
Companion
public companion object
Properties
Unspecified
public val Unspecified: ScaleFactor
A ScaleFactor whose scaleX and scaleY parameters are unspecified. This is a sentinel value used to initialize a non-null parameter. Access to scaleX or scaleY on an unspecified size is not allowed