margin

open fun margin(margins: Margins2d): Shape2d

Does not change the shape, only the axis aligned bounding box defined by corner and size. This will alter how methods such as toOrigin and 'tileX' in the 'layout' extension.


open fun margin(leftFront: Vector2, rightBack: Vector2): Shape2d
open fun margin(x: Double, y: Double): Shape2d


open fun margin(xy: Double): Shape2d

Equal margins on all four sides.


open fun margin(margins: Vector2): Shape2d

Symmetrical margins


open fun margin(back: Double, right: Double, front: Double, left: Double): Shape2d

Deprecated

The order of these parameters are confusing.