From 220db1a3a4c56209d4c2d2e1b5fe2420793677c6 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Wed, 13 Apr 2022 10:07:52 +0800 Subject: [PATCH] refactor: var is not necessary --- src/util/lerp.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/lerp.scad b/src/util/lerp.scad index e7a930f8..d5442dc0 100644 --- a/src/util/lerp.scad +++ b/src/util/lerp.scad @@ -8,4 +8,4 @@ * **/ -function lerp(v1, v2, amt) = let(v = v2 - v1) v1 + v * amt; \ No newline at end of file +function lerp(v1, v2, amt) = v1 + (v2 - v1) * amt; \ No newline at end of file