# `GSRectWithCenter`

*Function*

## Declaration

```swift
func GSRectWithCenter(_ center: NSPoint, _ size: NSSize) -> NSRect
```

```objc
NSRect GSRectWithCenter(NSPoint center, NSSize size);
```

```python
GSRectWithCenter(center: NSPoint, size: NSSize) -> NSRect
```

## See Also

### Rect Alignment and Handles

- [`GSHandleRect`](/Core/GlyphsCore/GSHandleRect)
- [`GSMirrorAlignment`](/Core/GlyphsCore/GSMirrorAlignment)
- [`GSAlignedPointForBounds`](/Core/GlyphsCore/GSAlignedPointForBounds)
- [`GSHandleRectForBounds`](/Core/GlyphsCore/GSHandleRectForBounds)

