1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-29 17:30:11 +02:00

refactor: var is not necessary

This commit is contained in:
Justin Lin
2022-04-13 10:07:52 +08:00
parent 5e8a053e0d
commit 220db1a3a4

View File

@@ -8,4 +8,4 @@
*
**/
function lerp(v1, v2, amt) = let(v = v2 - v1) v1 + v * amt;
function lerp(v1, v2, amt) = v1 + (v2 - v1) * amt;