# `GSPointOnCubicSegment`

*Function*

## Declaration

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

```objc
NSPoint GSPointOnCubicSegment(NSPoint *P, CGFloat t);
```

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

## See Also

### Curve Evaluation and Tangents

- [`GSPointOnLine`](/Core/GlyphsCore/GSPointOnLine)
- [`GSPointOffsetFromLine`](/Core/GlyphsCore/GSPointOffsetFromLine) — Like `GSPointOnLine`, but with the returned point offset by a certain amount onto a parallel line. So, more like the inverse of `GSNearestPointOnLine`.
- [`GSPointOffsetAtAngle`](/Core/GlyphsCore/GSPointOffsetAtAngle) — Returns a new point offset by the given distance in the direction of the given angle in radiants.
- [`GSPointAtTime`](/Core/GlyphsCore/GSPointAtTime)
- [`GSPointOnCubicPoints`](/Core/GlyphsCore/GSPointOnCubicPoints)
- [`GSPointOnQuarticPoints`](/Core/GlyphsCore/GSPointOnQuarticPoints)
- [`GSPointOnQuarticSegment`](/Core/GlyphsCore/GSPointOnQuarticSegment)
- [`GSPointOnQuadraticPoints`](/Core/GlyphsCore/GSPointOnQuadraticPoints)
- [`GSTangentOnQuadraticPoints`](/Core/GlyphsCore/GSTangentOnQuadraticPoints)
- [`GSTangentOnQuadraticSegment`](/Core/GlyphsCore/GSTangentOnQuadraticSegment)
- [`GSTangentOnCubicSegment`](/Core/GlyphsCore/GSTangentOnCubicSegment)
- [`GSTangentOnCubicPoints`](/Core/GlyphsCore/GSTangentOnCubicPoints)
- [`GSTangentOnQuadraticThroughPoint`](/Core/GlyphsCore/GSTangentOnQuadraticThroughPoint)

