yet better S2xE renderer

This commit is contained in:
Zeno Rogue
2019-09-12 22:50:13 +02:00
parent e636d3f40c
commit d79a6faa6f
2 changed files with 103 additions and 22 deletions
+1 -2
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;