---
title: "init(center:size:)"
framework: spatial
role: symbol
role_heading: Initializer
path: "spatial/rect3dfloat/init(center:size:)-2c8oz"
---

# init(center:size:)

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

## Declaration

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

## Parameters

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