rhine-0.1.1.0: Functional Reactive Programming with type-level clocks

Safe HaskellNone
LanguageHaskell2010

FRP.Rhine.ResamplingBuffer.Interpolation

Synopsis

Documentation

linear Source #

Arguments

:: (Monad m, Clock m cl1, Clock m cl2, VectorSpace v, Groundfield v ~ Diff (TimeDomainOf cl1), Groundfield v ~ Diff (TimeDomainOf cl2)) 
=> v

The initial velocity (derivative of the signal)

-> v

The initial position

-> ResamplingBuffer m cl1 cl2 v v 

A simple linear interpolation based on the last calculated position and velocity.