]> Skullheadx's Git Forge - Collision-Simulation.git/commitdiff
Update linear_interpolation.py
authorSkullheadx <admonty1@gmail.com>
Thu, 26 Jan 2023 16:35:27 +0000 (11:35 -0500)
committerSkullheadx <admonty1@gmail.com>
Thu, 26 Jan 2023 16:35:27 +0000 (11:35 -0500)
linear_interpolation.py

index 82f8d43f7c193c806f425229806cfa50041a7183..0b06476387528d5fe2892f8f279a07ae77e44be7 100644 (file)
@@ -5,4 +5,4 @@ class LinearInterpolation:
         self.end = end
 
     def evaluate(self, time):
-        return time * self.start - (1 - time) * self.end
+        return time * self.end - (1 - time) * self.start