1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-20 12:58:06 +00:00

Sol geometry

This commit is contained in:
Zeno Rogue
2019-07-23 15:08:07 +02:00
parent 946570da31
commit dd5d317cb3
6 changed files with 45 additions and 19 deletions

View File

@@ -223,6 +223,7 @@ void band_conformal(ld& x, ld& y) {
x *= 2; y *= 2;
break;
case gcEuclid:
default:
// y = y;
y *= 2; x *= 2;
break;
@@ -422,7 +423,7 @@ void applymodel(hyperpoint H, hyperpoint& ret) {
break;
}
case gcEuclid: {
case gcEuclid: default: {
// stereographic projection to a sphere
auto hd = hdist0(H) / vid.euclid_to_sphere;
if(hd == 0) ret = hpxyz(0, 0, -1);