diff --git a/src/util/lerp.scad b/src/util/lerp.scad new file mode 100644 index 00000000..b2a69170 --- /dev/null +++ b/src/util/lerp.scad @@ -0,0 +1,6 @@ +function lerp(p0, p1, amt) = + let( + v = p1 - p0, + leng = len(p0) + ) + [for(i = 0; i < leng; i = i + 1) p0[i] + v[i] * amt]; \ No newline at end of file