---
title: "inset(by:)"
framework: spatial
role: symbol
role_heading: Instance Method
path: "spatial/rect3d/inset(by:)"
---

# inset(by:)

Returns a new rectangle with the same center point after applying the specified inset amount.

## Declaration

```swift
func inset(by dXYZ: Size3D) -> Rect3D
```

## Parameters

- `dXYZ`: The size structure that defines the inset values.

## Return Value

Return Value A new rectangle with the same center point after applying the specified inset amount.

## See Also

### Creating derived 3D rectangles

- [integral](spatial/rect3d/integral.md)
- [formInset(by:)](spatial/rect3d/forminset(by:).md)
- [intersection(_:)](spatial/rect3d/intersection(_:).md)
- [standardized](spatial/rect3d/standardized.md)
