lerp for hyperpouint

This commit is contained in:
Zeno Rogue 2020-03-29 12:01:55 +02:00
parent d9e4ba62ec
commit 425cbef846
1 changed files with 4 additions and 0 deletions

View File

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