mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-24 18:37:39 +00:00
replaced product::product_sphere()
This commit is contained in:
@@ -566,11 +566,16 @@ EX namespace nilv {
|
||||
}
|
||||
EX }
|
||||
|
||||
EX bool in_s2xe() { return prod && hybrid::over_sphere(); }
|
||||
EX bool in_h2xe() { return prod && !hybrid::over_sphere(); }
|
||||
|
||||
EX namespace hybrid {
|
||||
|
||||
EX int current_view_level;
|
||||
EX eGeometry underlying;
|
||||
EX geometry_information *underlying_cgip;
|
||||
|
||||
EX bool over_sphere() { return ginf[hybrid::underlying].cclass == gcSphere; }
|
||||
|
||||
EX void configure(eGeometry g) {
|
||||
if(WDIM == 3) return;
|
||||
@@ -816,8 +821,6 @@ EX namespace product {
|
||||
});
|
||||
}
|
||||
|
||||
EX bool product_sphere() { return ginf[hybrid::underlying].cclass == gcSphere; }
|
||||
|
||||
EX hyperpoint inverse_exp(hyperpoint h) {
|
||||
hyperpoint res;
|
||||
res[2] = zlevel(h);
|
||||
|
||||
Reference in New Issue
Block a user