aboutsummaryrefslogtreecommitdiff
path: root/light-client/src/helper.rs
diff options
context:
space:
mode:
Diffstat (limited to 'light-client/src/helper.rs')
-rw-r--r--light-client/src/helper.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/light-client/src/helper.rs b/light-client/src/helper.rs
deleted file mode 100644
index 9654f519..00000000
--- a/light-client/src/helper.rs
+++ /dev/null
@@ -1,11 +0,0 @@
-use hurrycurry_protocol::glam::Vec2;
-
-pub trait Vec2InterpolateExt {
- fn exp_to(&mut self, target: Vec2, dt: f32);
-}
-impl Vec2InterpolateExt for Vec2 {
- fn exp_to(&mut self, target: Vec2, dt: f32) {
- self.x = target.x + (self.x - target.x) * (-dt).exp();
- self.y = target.y + (self.y - target.y) * (-dt).exp();
- }
-}