1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-23 18:07:41 +00:00

yet better S2xE renderer

This commit is contained in:
Zeno Rogue
2019-08-18 18:43:57 +02:00
parent e636d3f40c
commit d79a6faa6f
2 changed files with 103 additions and 22 deletions

View File

@@ -643,7 +643,7 @@ EX namespace product {
EX bool product_sphere() { return ginf[underlying].cclass == gcSphere; }
EX hyperpoint inverse_exp(hyperpoint h, int gen IS(0)) {
EX hyperpoint inverse_exp(hyperpoint h) {
hyperpoint res;
res[2] = zlevel(h);
h = zshift(h, -res[2]);
@@ -654,7 +654,6 @@ EX namespace product {
}
else {
auto c = acos_auto_clamp(h[2]);
c += 2 * M_PI * gen;
r = c / r;
res[0] = h[0] * r;
res[1] = h[1] * r;