offsetEdges

fun offsetEdges(offset: Double, offsetY: Double = offset): Rectangle(source)

Creates a new Rectangle with sides offset both horizontally and vertically by specified amount.

The Rectangle sides are shifted outwards if offset values are 0 or inwards if the values are < 0.