mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-30 12:00:35 +00:00
lerp for hyperpouint
This commit is contained in:
parent
d9e4ba62ec
commit
425cbef846
@ -1209,4 +1209,8 @@ EX int bucketer(hyperpoint h) {
|
|||||||
return dx;
|
return dx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EX hyperpoint lerp(hyperpoint a0, hyperpoint a1, ld x) {
|
||||||
|
return a0 + (a1-a0) * x;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user