inset(by:)
Declaration
func inset(by dXYZ: Size3DFloat) -> Rect3DFloatParameters
- dXYZ:
A size structure that specifies the inset amount.
Discussion
Returns a new rectangle with the size updated by the specified amount and the same center point.
This function returns a new rectangle that’s inset by the specified values on each axis. The origin value is offset by the distance specified by the @p dXYZ parameter.
The size is adjusted by @p (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.