# `GSDistanceOfPointFromLineSegment`

*Function*

## Declaration

```swift
func GSDistanceOfPointFromLineSegment(_ inPoint: NSPoint, _ a: NSPoint, _ b: NSPoint) -> CGFloat
```

```objc
CGFloat GSDistanceOfPointFromLineSegment(NSPoint inPoint, NSPoint a, NSPoint b);
```

```python
GSDistanceOfPointFromLineSegment(inPoint: NSPoint, a: NSPoint, b: NSPoint) -> float
```

## See Also

### Nearest Points and Distances

- [`GSNearestPointOnCubicSegmentBounds`](/Core/GlyphsCore/GSNearestPointOnCubicSegmentBounds)
- [`GSNearestPointOnCubicSegment`](/Core/GlyphsCore/GSNearestPointOnCubicSegment)
- [`GSNearestPointOnQuarticSegment`](/Core/GlyphsCore/GSNearestPointOnQuarticSegment)
- [`GSNearestPointOnQuartic`](/Core/GlyphsCore/GSNearestPointOnQuartic)
- [`GSNearestPointOnQuadraticPoints`](/Core/GlyphsCore/GSNearestPointOnQuadraticPoints)
- [`GSDistanceOfPointFromCurve`](/Core/GlyphsCore/GSDistanceOfPointFromCurve)
- [`GSSquareDistanceOfPointFromCurveSegment`](/Core/GlyphsCore/GSSquareDistanceOfPointFromCurveSegment)
- [`GSDistanceOfPointFromLine`](/Core/GlyphsCore/GSDistanceOfPointFromLine)
- [`GSNearestPointOnCubic`](/Core/GlyphsCore/GSNearestPointOnCubic)
- [`GSNearestPointOnQuadraticSpline`](/Core/GlyphsCore/GSNearestPointOnQuadraticSpline)
- [`GSNearestPointOnLinePoints`](/Core/GlyphsCore/GSNearestPointOnLinePoints)
- [`GSNearestPointOnLineUnlimited`](/Core/GlyphsCore/GSNearestPointOnLineUnlimited)
- [`GSDividCubicPointsAtDistance`](/Core/GlyphsCore/GSDividCubicPointsAtDistance)

