---
title: "rectangular(center:width:height:thickness:in:)"
framework: tabletopkit
role: symbol
role_heading: Type Method
path: "tabletopkit/tabletopshape/rectangular(center:width:height:thickness:in:)"
---

# rectangular(center:width:height:thickness:in:)

Creates a rectangular tabletop shape with the specified center and dimensions.

## Declaration

```swift
static func rectangular(center: Point3D = .zero, width: Float, height: Float, thickness: Float, in unit: UnitLength = .meters) -> TabletopShape
```

## See Also

### Creating a round or rectangular table

- [round(center:radius:thickness:in:)](tabletopkit/tabletopshape/round(center:radius:thickness:in:).md)
