SIMD2
extension SIMD2: Interpolatable where Scalar: FloatingPoint & SIMDScalar
Todo
I would love to collapse these into a single generic for bothDouble and Float using simd_mix but I still haven’t quite figured it out yet. PRs would be awesome!
-
Declaration
Swift
public func lerp(to: `Self`, fraction: `Self`.Scalar) -> SIMD2<Scalar>
SIMD2 Extension Reference