1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-15 10:38: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

@@ -943,7 +943,7 @@ bincode acd_bin(ld x) {
bincode get_bincode(hyperpoint h) {
switch(ginf[gwhere].cclass) {
case gcEuclid:
case gcEuclid: case gcSol:
return acd_bin(h[0]) + acd_bin(h[1]) * sY + acd_bin(h[2]) * sZ;
case gcHyperbolic:
return acd_bin(hypot_d(3, h));