mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-20 13:31:30 +02:00
refactor: remove var
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
function _lerp(v1, v2, amt) = let(v = v2 - v1) v1 + v * amt;
|
function _lerp(v1, v2, amt) = v1 + (v2 - v1) * amt;
|
||||||
|
|
||||||
function interpolated_pt(p0, p1, threshold) =
|
function interpolated_pt(p0, p1, threshold) =
|
||||||
let(p = _lerp(p0, p1, (threshold - p0.z) / (p1.z - p0.z)))
|
let(p = _lerp(p0, p1, (threshold - p0.z) / (p1.z - p0.z)))
|
||||||
|
Reference in New Issue
Block a user