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

# init(center:size:)

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

## Declaration

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

## Parameters

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