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

conformal:: new models: formula and rotated hyperboles

This commit is contained in:
Zeno Rogue
2018-11-07 00:52:48 +01:00
parent 55fdd25a6c
commit 542e80081f
5 changed files with 80 additions and 32 deletions

View File

@@ -191,6 +191,7 @@ bool two_sided_model() {
// if(pmodel == mdHemisphere) return true;
if(pmodel == mdDisk) return sphere;
if(pmodel == mdHemisphere) return true;
if(pmodel == mdRotatedHyperboles) return true;
return false;
}
@@ -201,6 +202,8 @@ int get_side(const hyperpoint& H) {
return (H[2] <= -horizon) ? -1 : 1;
;
}
if(pmodel == mdRotatedHyperboles)
return H[1] > 0 ? -1 : 1;
if(pmodel == mdHyperboloid && hyperbolic)
return (conformal::sin_ball * H[2] > -conformal::cos_ball * H[1]) ? -1 : 1;
if(pmodel == mdHyperboloid && sphere)