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

# init(origin:size:)

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

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

## Parameters

`origin`

A vector that specifies the rectangle’s origin.

`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)