scaleAroundCenter

fun Geometry.scaleAroundCenter(factor: Double): Geometry

Scales the geometry around its center using the same scaling factor for both axes.

Return

A new geometry scaled around its center.

Parameters

factor

The scaling factor for both the X and Y axes.


fun Geometry.scaleAroundCenter(xFactor: Double, yFactor: Double): Geometry

Scales the geometry around its center using different scaling factors for the X and Y axes.

Return

A new geometry scaled around its center.

Parameters

xFactor

The scaling factor for the X axis.

yFactor

The scaling factor for the Y axis.