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

# init(origin:size:)

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

## Declaration

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

## Parameters

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