# `GSDistanceOfPointFromRect`

*Function*

## Declaration

```swift
func GSDistanceOfPointFromRect(_ point: NSPoint, _ rect: NSRect, _ angle: CGFloat) -> CGFloat
```

```objc
CGFloat GSDistanceOfPointFromRect(NSPoint point, NSRect rect, CGFloat angle);
```

```python
GSDistanceOfPointFromRect(point: NSPoint, rect: NSRect, angle: float) -> float
```

## See Also

### Ellipse and Rect Proximity

- [`GSNearestPointOnEllipse`](/Core/GlyphsCore/GSNearestPointOnEllipse)
- [`GSDistanceOfPointFromEllipse`](/Core/GlyphsCore/GSDistanceOfPointFromEllipse)
- [`GSNearestPointOnRect`](/Core/GlyphsCore/GSNearestPointOnRect)

