SIMD2

extension SIMD2: Interpolatable where Scalar: FloatingPoint & SIMDScalar

Todo

I would love to collapse these into a single generic for both Double and Float using simd_mix but I still haven’t quite figured it out yet. PRs would be awesome!

Available where Scalar: FloatingPoint & SIMDScalar

  • Declaration

    Swift

    public func lerp(to: `Self`, fraction: `Self`.Scalar) -> SIMD2<Scalar>