<!--
{
  "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:)-zr2x",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Spatial"
    ],
    "preciseIdentifier" : "s:So8SPRect3Da7SpatialE6center4sizeABs5SIMD3VySfG_AHtcfc"
  },
  "title" : "init(center:size:)"
}
-->

# init(center:size:)

Creates a rectangle with the specified center and the specified size from single-precision vectors.

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

## Parameters

`center`

A single-precision vector that specifies the rectangle’s center.

`size`

A single-precision 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)