formInset(by:)
Insets the rectangle by the specified size.
Declaration
mutating func formInset(by dXYZ: Size3DFloat)Parameters
- dXYZ:
The inset amount.
Discussion
This function insets the rectangle by the specified values on each axis. The origin value is offset by the distance specified by the dXYZ parameter. The size is adjusted by (2*dXYZ), relative to the source rectangle.
If the width, height, or depth are positive values, then the rectangle’s size is decreased on that dimension. If width, height, or depth are negative values, the rectangle’s size is increased on that dimension.