1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-27 01:14:52 +00:00

fixup correct order and detailed comment

This commit is contained in:
Zeno Rogue 2023-02-10 15:13:16 +01:00
parent 597d95ccc2
commit 903c654c44

View File

@ -445,7 +445,7 @@ void after_interpolation(hyperpoint& h) {
h = normalize(h);
}
ld interpolate(const vector<ld>& times, vector<ld> values, ld t) {
ld interpolate(vector<ld> values, const vector<ld>& times, ld t) {
int n = isize(values);
print(hlog, "interpolate: ", values);
@ -460,7 +460,7 @@ ld interpolate(const vector<ld>& times, vector<ld> values, ld t) {
values.pop_back();
}
println(hlog, " -> ", values[0]);
println(hlog, " -> ", values[0], " based on ", times, " -> ", t);
return values[0];
}