1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00
dotSCAD/docs/lib3x-lerp.md

17 lines
312 B
Markdown
Raw Normal View History

2021-01-04 10:22:49 +08:00
# lerp
Linear interpolate the vector v1 to v2.
**Since:** 2.5
## Parameters
2022-04-04 10:40:58 +08:00
- `v1` : the vector v1.
- `v2` : the vector v2.
2021-01-04 10:22:49 +08:00
- `amt` : The amount of interpolation. Some value between 0.0 and 1.0.
## Examples
use <util/lerp.scad>;
assert(lerp([0, 0, 0], [100, 100, 100], 0.5) == [50, 50, 50]);