# `GSCenteredRectInRect`

*Function*

## Declaration

```swift
func GSCenteredRectInRect(_ outerRect: NSRect, _ innerSize: NSSize) -> NSRect
```

```objc
static NSRect GSCenteredRectInRect(NSRect outerRect, NSSize innerSize);
```

```python
GSCenteredRectInRect(outerRect: NSRect, innerSize: NSSize) -> NSRect
```

## See Also

### Point, Size, and Rect Utilities

- [`GSMaxPoint`](/Core/GlyphsCore/GSMaxPoint)
- [`GSMinPoint`](/Core/GlyphsCore/GSMinPoint)
- [`GSScaleRect`](/Core/GlyphsCore/GSScaleRect)
- [`GSScaleRectAroundPoint`](/Core/GlyphsCore/GSScaleRectAroundPoint)
- [`GSValidateRect`](/Core/GlyphsCore/GSValidateRect)
- [`GSValidateRange`](/Core/GlyphsCore/GSValidateRange)
- [`GSScaleSize`](/Core/GlyphsCore/GSScaleSize)
- [`GSScalePoint`](/Core/GlyphsCore/GSScalePoint)
- [`GSAddPoints`](/Core/GlyphsCore/GSAddPoints)
- [`GSSubtractPoints`](/Core/GlyphsCore/GSSubtractPoints)
- [`GSFlipUnitPoint`](/Core/GlyphsCore/GSFlipUnitPoint)
- [`GSInterpolatePoints`](/Core/GlyphsCore/GSInterpolatePoints)
- [`GSAbsolutePointInRect`](/Core/GlyphsCore/GSAbsolutePointInRect)
- [`GSRelativePointInRect`](/Core/GlyphsCore/GSRelativePointInRect)

