1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-12 17:28:05 +00:00

product:: using in_h2xe() and in_s2xe() more consistently

This commit is contained in:
Zeno Rogue
2019-11-28 23:09:38 +01:00
parent d63b14da5c
commit 5add972bdd
5 changed files with 10 additions and 9 deletions

View File

@@ -973,15 +973,16 @@ EX void show_niltorus3() {
EX }
EX bool in_s2xe() { return prod && hybrid::over_sphere(); }
EX bool in_h2xe() { return prod && !hybrid::over_sphere(); }
EX bool in_s2xe() { return prod && hybrid::under_class() == gcSphere; }
EX bool in_h2xe() { return prod && hybrid::under_class() == gcHyperbolic; }
EX bool in_e2xe() { return prod && hybrid::under_class() == gcEuclid; }
EX namespace hybrid {
EX eGeometry underlying;
EX geometry_information *underlying_cgip;
EX bool over_sphere() { return ginf[hybrid::underlying].cclass == gcSphere; }
EX eGeometryClass under_class() { return ginf[hybrid::underlying].cclass; }
EX void configure(eGeometry g) {
if(WDIM == 3) return;