<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Spatial",
  "identifier" : "/documentation/Spatial/Rect3DFloat/init(center:size:)-92ay9",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Spatial"
    ],
    "preciseIdentifier" : "s:So13SPRect3DFloata7SpatialE6center4sizeABSo09SPVector3B0a_AGtcfc"
  },
  "title" : "init(center:size:)"
}
-->

# init(center:size:)

Creates a rectangle from Spatial vectors that describe the center and size.

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

## Parameters

`center`

The center of the rectangle.

`size`

The size of the rectangle.

---

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)