<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Spatial",
  "identifier" : "/documentation/Spatial/Rotation3DFloat/spline(leftEndpoint:from:to:rightEndpoint:t:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Spatial"
    ],
    "preciseIdentifier" : "s:So17SPRotation3DFloata7SpatialE6spline12leftEndpoint4from2to05rightF01tA2B_A3BSftFZ"
  },
  "title" : "spline(leftEndpoint:from:to:rightEndpoint:t:)"
}
-->

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

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

```
static func spline(leftEndpoint r0: Rotation3DFloat, from r1: Rotation3DFloat, to r2: Rotation3DFloat, rightEndpoint r3: Rotation3DFloat, t: Float) -> Rotation3DFloat
```

## Return Value

A new rotation that’s the interpolated value between the two rotations along a spherical cubic spline.

## Discussion

Use this function to smoothly interpolate between a sequence of rotations.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)