# `GSTForDistanceCubic`

*Function*

## Declaration

```swift
func GSTForDistanceCubic(_ Distance: CGFloat, _ P0: NSPoint, _ P1: NSPoint, _ P2: NSPoint, _ P3: NSPoint, _ maxT: CGFloat) -> CGFloat
```

```objc
CGFloat GSTForDistanceCubic(CGFloat Distance, NSPoint P0, NSPoint P1, NSPoint P2, NSPoint P3, CGFloat maxT);
```

```python
GSTForDistanceCubic(Distance: float, P0: NSPoint, P1: NSPoint, P2: NSPoint, P3: NSPoint, maxT: float) -> float
```

## See Also

### Lengths, Extrema, and Bounds

- [`GSLengthOfCubicPoints`](/Core/GlyphsCore/GSLengthOfCubicPoints)
- [`GSLengthOfQuadraticSpline`](/Core/GlyphsCore/GSLengthOfQuadraticSpline)
- [`GSTForDistanceQuadraticSpline`](/Core/GlyphsCore/GSTForDistanceQuadraticSpline)
- [`GSExtremeTimesOfCubicUnlimited`](/Core/GlyphsCore/GSExtremeTimesOfCubicUnlimited)
- [`GSExtremeTimesOfCubic`](/Core/GlyphsCore/GSExtremeTimesOfCubic)
- [`GSExtremePointsOfCubic`](/Core/GlyphsCore/GSExtremePointsOfCubic)
- [`GSExtremesOfCubic`](/Core/GlyphsCore/GSExtremesOfCubic)
- [`GSTangentPointsAtAngel`](/Core/GlyphsCore/GSTangentPointsAtAngel)
- [`GSBoundsOfQuadratic`](/Core/GlyphsCore/GSBoundsOfQuadratic)
- [`GSBoundsOfQuadraticSpline`](/Core/GlyphsCore/GSBoundsOfQuadraticSpline)
- [`GSBoundsOfCubic`](/Core/GlyphsCore/GSBoundsOfCubic)
- [`GSBoundingRectOfCubic`](/Core/GlyphsCore/GSBoundingRectOfCubic)
- [`GSBoundsOfQuartic`](/Core/GlyphsCore/GSBoundsOfQuartic)
- [`GSBoundingRectOfQuadratic`](/Core/GlyphsCore/GSBoundingRectOfQuadratic)
- [`GSBoundsOfTransformedRect`](/Core/GlyphsCore/GSBoundsOfTransformedRect)

