1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-12 09:44:16 +02:00
This commit is contained in:
Justin Lin
2021-01-04 10:17:40 +08:00
parent 5c5a6c73c8
commit 15cc747d1a

View File

@@ -1,6 +1,6 @@
function lerp(p0, p1, amt) =
function lerp(v1, v2, amt) =
let(
v = p1 - p0,
leng = len(p0)
v = v2 - v1,
leng = len(v1)
)
[for(i = 0; i < leng; i = i + 1) p0[i] + v[i] * amt];
[for(i = 0; i < leng; i = i + 1) v1[i] + v[i] * amt];