---
title: "interpolate(towards:amount:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/vectorarithmetic/interpolate(towards:amount:)"
---

# interpolate(towards:amount:)

Interpolates this value with other by the specified amount.

## Declaration

```swift
mutating func interpolate(towards other: Self, amount: Double)
```

## Discussion

Discussion This is equivalent to self = self + (other - self) * amount.

## See Also

### Manipulating values

- [magnitudeSquared](swiftui/vectorarithmetic/magnitudesquared.md)
- [scale(by:)](swiftui/vectorarithmetic/scale(by:).md)
- [scaled(by:)](swiftui/vectorarithmetic/scaled(by:).md)
- [interpolated(towards:amount:)](swiftui/vectorarithmetic/interpolated(towards:amount:).md)
