enable extension of gores map

I can imagine this could be useful if you're making a globe and you want to minimize the visibility of the cuts.
This commit is contained in:
Justin Kunimune 2024-04-25 20:34:38 -04:00
parent 1f49c5b16f
commit 4c89fd8ffb

View File

@ -433,12 +433,10 @@ public class Misc {
final double lemonCenter = (lemonIndex - numLemons/2. + 1/2.)*lemonWidth;
final double dx = x - lemonCenter; // find the relative x
double[] latLon = CASSINI.inverse(dx, y); // project from Cassini with that
if (abs(latLon[1]) > lemonWidth/2) // make sure it's still in the correct lemon
return null;
else {
latLon[1] += lemonCenter;
return latLon;
}
if (abs(latLon[1]) > lemonWidth/2)
latLon[1] += 4*PI; // mark it as out of bounds if it's out of the bounds of its lemon
latLon[1] += lemonCenter; // set the absolute longitude based on which lemon it is
return latLon;
}
};