---
title: "init(origin:size:)"
framework: spatial
role: symbol
role_heading: Initializer
path: "spatial/rect3dfloat/init(origin:size:)-ywzp"
---

# init(origin:size:)

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

## Declaration

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

## Parameters

- `origin`: The origin of the rectangle.
- `size`: The size of the rectangle.
