1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-22 22:35:18 +02:00
This commit is contained in:
Justin Lin
2021-01-04 10:08:31 +08:00
parent 42b8b56ce6
commit 812350bd48

6
src/util/lerp.scad Normal file
View File

@@ -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];