# `GSRoundRectGrid`

*Function*

## Declaration

```swift
func GSRoundRectGrid(_ rect: NSRect, _ grid: CGFloat) -> NSRect
```

```objc
static NSRect GSRoundRectGrid(NSRect rect, CGFloat grid);
```

```python
GSRoundRectGrid(rect: NSRect, grid: float) -> NSRect
```

## See Also

### Rounding and Grid

- [`GSUnitVector`](/Core/GlyphsCore/GSUnitVector)
- [`GSCross`](/Core/GlyphsCore/GSCross)
- [`GSRoundHandle`](/Core/GlyphsCore/GSRoundHandle)
- [`GSRoundGrid`](/Core/GlyphsCore/GSRoundGrid)
- [`GSRoundPoint`](/Core/GlyphsCore/GSRoundPoint)
- [`GSRoundPointToDirection`](/Core/GlyphsCore/GSRoundPointToDirection)
- [`GSRoundPointToLine`](/Core/GlyphsCore/GSRoundPointToLine)
- [`GSRoundPointGrid`](/Core/GlyphsCore/GSRoundPointGrid)
- [`GSRoundPointGridSetting`](/Core/GlyphsCore/GSRoundPointGridSetting)
- [`GSRoundPointGridSettingMax`](/Core/GlyphsCore/GSRoundPointGridSettingMax)
- [`GSRoundSize`](/Core/GlyphsCore/GSRoundSize)
- [`GSRoundRect`](/Core/GlyphsCore/GSRoundRect)

