# `GSNearestPointOnCubicSegment`

*Function*

## Declaration

```swift
func GSNearestPointOnCubicSegment(_ P: NSPoint, _ V: UnsafeMutablePointer<NSPoint>, _ t: UnsafeMutablePointer<CGFloat>?) -> NSPoint
```

```objc
NSPoint GSNearestPointOnCubicSegment(NSPoint P, NSPoint *V, CGFloat *t);
```

```python
GSNearestPointOnCubicSegment(P: NSPoint, V: NSPoint, t: float) -> NSPoint
```

## See Also

### Nearest Points and Distances

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

