mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-28 11:34:30 +00:00
findbaseAround for all binary tilings
This commit is contained in:
1 parent
608692b6df
commit
378d21b509
2 files changed
+32
-15
No files matched your search
@@ -525,6 +525,16 @@ namespace binary {
|
||||
ld co = vid.binary_width / log(2) / 4;
|
||||
return hr::parabolic13(y * co, z * co);
|
||||
}
|
||||
|
||||
// on which horocycle are we
|
||||
ld horo_level(hyperpoint h) {
|
||||
using namespace hyperpoint_vec;
|
||||
h /= (1 + h[DIM]);
|
||||
h[0] -= 1;
|
||||
h /= sqhypot_d(DIM, h);
|
||||
h[0] += .5;
|
||||
return log(2) + log(-h[0]);
|
||||
}
|
||||
|
||||
hyperpoint deparabolic3(hyperpoint h) {
|
||||
using namespace hyperpoint_vec;
|
||||
|
||||
Reference in new issue
Block a user