scaledTo

open override fun scaledTo(width: Double, height: Double): Rectangle(source)

Creates a new shape at the same position with the given dimensions.


open override fun scaledTo(size: Double): Rectangle(source)

Creates a new shape at the same position with the given dimension, scaled uniformly.