]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Interpolator.hh
scene drawing correctly implemented; new classes
[chaz/yoink] / src / Moof / Interpolator.hh
index 87e3acdbcf26a517fdaaa84cfbdac1c8de1c98d4..2c33844262db6835cc5eaf02258f09cf5d11d767 100644 (file)
@@ -29,6 +29,8 @@
 #ifndef _MOOF_INTERPOLATOR_HH_
 #define _MOOF_INTERPOLATOR_HH_
 
+#include <Moof/Math.hh>
+
 
 namespace Mf {
 
@@ -124,7 +126,7 @@ public:
                Interpolator::init(seconds, mode);
 
                calculate(0.0); // set value
-               calculate(0.0); // set previous
+               previous_ = value_;
        }
 
        void calculate(Scalar alpha)
This page took 0.01673 seconds and 4 git commands to generate.