1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-05 03:47:58 +00:00

embeddings:: better explained altitudes

This commit is contained in:
Zeno Rogue
2023-02-19 01:00:15 +01:00
parent 5a40534c85
commit 65883a53cf
3 changed files with 92 additions and 30 deletions

View File

@@ -309,13 +309,15 @@ EX geometry_information *swapper;
ld embedding_method::height_limit(ld sign) {
if(sign > 0) {
if(hyperbolic || sol || nih || sl2 || in_h2xe()) return 5;
if(sol || nih) return 2.5;
if(hyperbolic || sl2 || in_h2xe()) return 5;
if(sphere || nil || in_s2xe()) return M_PI/2;
return 100;
}
if(sign < 0) {
if(center_z()) return -center_z();
if(hyperbolic || sol || nih || sl2 || in_h2xe()) return -5;
if(sol || nih) return -2.5;
if(hyperbolic || sl2 || in_h2xe()) return -5;
if(sphere || nil || in_s2xe()) return -M_PI/2;
return -100;
}