---
title: "slerp(from:to:t:along:)"
framework: spatial
role: symbol
role_heading: Type Method
path: "spatial/rotation3dfloat/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.

## Declaration

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