1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-12 17:28:05 +00:00

nilv:: geodesic wall surfaces

This commit is contained in:
Zeno Rogue
2019-08-06 21:09:12 +02:00
parent 21a7869e0b
commit 4d64618600
2 changed files with 11 additions and 0 deletions

View File

@@ -526,6 +526,13 @@ namespace nilv {
}
};
hyperpoint on_geodesic(hyperpoint s0, hyperpoint s1, ld x) {
using namespace hyperpoint_vec;
hyperpoint local = inverse(nisot::translate(s0)) * s1;
hyperpoint h = get_inverse_exp(local, 100);
return nisot::translate(s0) * formula_exp(h * x);
}
}
namespace nisot {