From 425cbef846d618b4b1f7eee48652594264248a51 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 29 Mar 2020 12:01:55 +0200 Subject: [PATCH] lerp for hyperpouint --- hyperpoint.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hyperpoint.cpp b/hyperpoint.cpp index 6431f99a..fc1e4ee6 100644 --- a/hyperpoint.cpp +++ b/hyperpoint.cpp @@ -1209,4 +1209,8 @@ EX int bucketer(hyperpoint h) { return dx; } +EX hyperpoint lerp(hyperpoint a0, hyperpoint a1, ld x) { + return a0 + (a1-a0) * x; + } + }