1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-07 12:19:03 +00:00

horocyclic coordinates model

This commit is contained in:
Zeno Rogue
2019-11-09 12:49:00 +01:00
parent 97c9673b30
commit 416ee95aac
4 changed files with 25 additions and 6 deletions

View File

@@ -444,6 +444,25 @@ EX void applymodel(hyperpoint H, hyperpoint& ret) {
break;
}
case mdHorocyclic: {
find_zlev(H);
models::apply_orientation_yz(H[1], H[2]);
models::apply_orientation(H[0], H[1]);
ret = hyperbolic ? deparabolic10(H) : H;
ret *= .5;
ret[LDIM] = 1;
models::apply_orientation(ret[1], ret[0]);
models::apply_orientation_yz(ret[2], ret[1]);
if(nonisotropic) ret = lp_apply(ret);
break;
}
case mdHemisphere: {
switch(cgclass) {