mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-30 12:34:30 +00:00
Sol geometry
This commit is contained in:
1 parent
946570da31
commit
dd5d317cb3
6 files changed
+45
-19
No files matched your search
+2
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user