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

# init(center:size:)

Creates a rectangle from single-precision vectors that describe the center and size.

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

## Parameters

`center`

The center of the rectangle.

`size`

The size of the rectangle.

## Discussion> note: This function is provided as a convenience. All Spatial storage and calculations are single-precision.

---

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)