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

models:: central cylindrical and in-progress Collignon

This commit is contained in:
Zeno Rogue
2019-08-14 17:13:20 +02:00
parent 9e79872780
commit 9d573ebd07
4 changed files with 32 additions and 2 deletions

View File

@@ -698,6 +698,9 @@ ld period_at(ld y) {
return m * 2 * cos(y * M_PI);
case mdMollweide:
return (abs(y) > .5-1e-6) ? m * 2 : m * 2 * sqrt(1 - y*y*4);
case mdCollignon:
// return (y < -.499999) ? m*2 : m*(1+2*y);
return (abs(y) < 1e-6) ? m*2 : m*2*y; // y = signed_sqrt(sin_auto(y) + whatever[0]);
default:
return m * 2;
}