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

# init(origin:size:)

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

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

## Parameters

`origin`

The origin 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)