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

# init(center:size:)

Creates a rectangle at the specified center with the specified size.

## Declaration

```swift
init(center: Point3DFloat, size: Size3DFloat)
```

## Parameters

- `center`: A point structure that specifies the center of the rectangle.
- `size`: A size structure that specifies the sie of the rectangle.

## Return Value

Return Value A new rectangle stucture.

## Discussion

Discussion Returns a rectangle at the specified center.
