<!--
{
  "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/slerp(from:to:t:along:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Spatial"
    ],
    "preciseIdentifier" : "s:So17SPRotation3DFloata7SpatialE5slerp4from2to1t5alongA2B_ABSfSo0A1DaACE9SlerpPathOtFZ"
  },
  "title" : "slerp(from:to:t:along:)"
}
-->

# slerp(from:to:t:along:)

Returns the spherical linear interpolation along the either the shortest or longest arc
between two rotations.

```
static func slerp(from: Rotation3DFloat, to: Rotation3DFloat, t: Float, along path: Rotation3D.SlerpPath = .shortest) -> Rotation3DFloat
```

---

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)