models:: central cylindrical and in-progress Collignon

This commit is contained in:
Zeno Rogue
2019-09-12 22:50:13 +02:00
parent 9e79872780
commit 9d573ebd07
4 changed files with 32 additions and 2 deletions
+3
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;
}