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

# lerp(from:to:t:)

Returns a Spatial vector that represents the linear interpolation at `t` between two vectors.

```
static func lerp(from: Vector3D, to: Vector3D, t: Vector3D) -> Vector3D
```

## Parameters

`from`

The starting vector.

`to`

The ending vector.

`t`

The value, between `0` and `1`, that the function interpolates at.

## Return Value

A new rotation. When `t=0`, the result is the `from` vector. When `t=1.0`, the result
is the `to` vector. For any other value of `t`, the result is a linear linear interpolation between the two vectors.

---

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)