---
title: "mix(_:_:t:)"
framework: simd
role: symbol
role_heading: Function
path: "simd/mix(_:_:t:)-3hfwb"
---

# mix(_:_:t:)

Returns an element-wise linearly interpolated value between two vectors.

## Declaration

```swift
func mix(_ x: SIMD2<Double>, _ y: SIMD2<Double>, t: SIMD2<Double>) -> SIMD2<Double>
```

## See Also

### Interpolation Functions

- [simd_smoothstep(_:_:_:)](simd/simd_smoothstep(_:_:_:)-e0ov.md)
- [smoothstep(_:edge0:edge1:)](simd/smoothstep(_:edge0:edge1:)-2wqo9.md)
- [simd_mix(_:_:_:)](simd/simd_mix(_:_:_:)-v083.md)
- [mix(_:_:t:)](simd/mix(_:_:t:)-7bjg5.md)
