---
title: "spline(leftEndpoint:from:to:rightEndpoint:t:)"
framework: spatial
role: symbol
role_heading: Type Method
path: "spatial/rotation3d/spline(leftendpoint:from:to:rightendpoint:t:)"
---

# spline(leftEndpoint:from:to:rightEndpoint:t:)

Returns an interpolated value between two rotations along a spherical cubic spline.

## Declaration

```swift
static func spline(leftEndpoint r0: Rotation3D, from r1: Rotation3D, to r2: Rotation3D, rightEndpoint r3: Rotation3D, t: Double) -> Rotation3D
```
