<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Spatial",
  "identifier" : "/documentation/Spatial/Rect3D/init(center:size:)-9cfq7",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Spatial"
    ],
    "preciseIdentifier" : "s:So8SPRect3Da7SpatialE6center4sizeABSo10SPVector3Da_AGtcfc"
  },
  "title" : "init(center:size:)"
}
-->

# init(center:size:)

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

```
init(center: Vector3D = .zero, size: Vector3D)
```

## Parameters

`center`

A vector that specifies the rectangle’s center.

`size`

A vector 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)