1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-03-11 15:49:44 +00:00

hyperbolic spiral model

This commit is contained in:
Zeno Rogue
2018-11-09 14:15:00 +01:00
parent c1af8f9d3a
commit 8f3f0baabe
2 changed files with 28 additions and 2 deletions

View File

@@ -556,6 +556,19 @@ void applymodel(hyperpoint H, hyperpoint& ret) {
break;
}
case mdSpiral: {
makeband(H, ret, band_conformal);
cld z(ret[0], ret[1]);
z = z * cld(conformal::cos_spiral, conformal::sin_spiral) * M_PI * conformal::cos_spiral;
z = exp(z);
ret[0] = real(z);
ret[1] = imag(z);
if(vid.skiprope)
ret = mobius(ret, vid.skiprope, 1);
}
case mdGUARD: break;
}