# `GSRoundPointToDirection`

*Function*

## Declaration

```swift
func GSRoundPointToDirection(_ point: NSPoint, _ unitVector: NSPoint, _ grid: GSGridSettings) -> NSPoint
```

```objc
NSPoint GSRoundPointToDirection(NSPoint point, NSPoint unitVector, GSGridSettings grid);
```

```python
GSRoundPointToDirection(point: NSPoint, unitVector: NSPoint, grid: GSGridSettings) -> NSPoint
```

## 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)
- [`GSRoundPointToLine`](/Core/GlyphsCore/GSRoundPointToLine)
- [`GSRoundPointGrid`](/Core/GlyphsCore/GSRoundPointGrid)
- [`GSRoundPointGridSetting`](/Core/GlyphsCore/GSRoundPointGridSetting)
- [`GSRoundPointGridSettingMax`](/Core/GlyphsCore/GSRoundPointGridSettingMax)
- [`GSRoundSize`](/Core/GlyphsCore/GSRoundSize)
- [`GSRoundRectGrid`](/Core/GlyphsCore/GSRoundRectGrid)
- [`GSRoundRect`](/Core/GlyphsCore/GSRoundRect)

