scaledBy

open override fun scaledBy(xScale: Double, yScale: Double, uAnchor: Double, vAnchor: Double): Rectangle(source)

Creates a new shape with dimensions scaled by xScale and yScale.

Parameters

xScale

the x scale factor

yScale

the y scale factor

uAnchor

x coordinate of the scaling anchor in u parameter space, default is 0.5 (center)

vAnchor

y coordinate of the scaling anchor in v parameter space, default is 0.5 (center)


open override fun scaledBy(scale: Double, uAnchor: Double, vAnchor: Double): Rectangle(source)

Creates a new shape with dimensions scaled by scale.

Parameters

scale

the scale factor

uAnchor

x coordinate of the scaling anchor in u parameter space, default is 0.5 (center)

vAnchor

y coordinate of the scaling anchor in v parameter space, default is 0.5 (center)