<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Spatial",
  "identifier" : "/documentation/Spatial/Rect3D/init(center:size:)-133fy",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Spatial"
    ],
    "preciseIdentifier" : "c:@F@SPRect3DMakeAtCenter#$@UA@SPPoint3D#$@UA@SPSize3D#"
  },
  "title" : "init(center:size:)"
}
-->

# init(center:size:)

Creates a rectangle with the specified center and the specified size from Spatial structures.

```
init(center: Point3D, size: Size3D)
```

## Parameters

`center`

A point structure that specifies the rectangle’s center.

`size`

A size structure that specifies the rectangle’s size.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)