diff --git a/src/maps/Azimuthal.java b/src/maps/Azimuthal.java index 723df7b..21ea080 100644 --- a/src/maps/Azimuthal.java +++ b/src/maps/Azimuthal.java @@ -125,7 +125,7 @@ public class Azimuthal { public void setParameters(double... params) { this.d = 1/(1 - 2*params[0]/100); - this.width = this.height = 2/Math.sqrt(d*d-1); + this.width = this.height = (Double.isFinite(d)) ? 2/Math.sqrt(d*d-1) : ORTHOGRAPHIC.getWidth(); } public double[] project(double lat, double lon) { diff --git a/src/maps/Octohedral.java b/src/maps/Octohedral.java index 63732d9..c7d1581 100644 --- a/src/maps/Octohedral.java +++ b/src/maps/Octohedral.java @@ -336,7 +336,7 @@ public class Octohedral { }, - BAT_SHAPE(2*Math.sqrt(3), 0, 2, 0) { //Luca Concialdi's obscure "Bat" arrangement that I liked. I don't think it's the best map possible as Luca does, but I do think it's quite neat + BAT_SHAPE(2*Math.sqrt(3), 0, 2, 0) { //Luca Concialdi's obscure "Bat" arrangement that I liked. TODO: this doesn't quite match Concialdi's design public double[] project(double lat, double lon) { double centralMerid = Math.floor((lon+Math.PI/4)/(Math.PI/2))*Math.PI/2; diff --git a/src/zupplemental/generate_orthodromes.py b/src/zupplemental/generate_orthodromes.py index d3e4c7c..05561f8 100644 --- a/src/zupplemental/generate_orthodromes.py +++ b/src/zupplemental/generate_orthodromes.py @@ -12,7 +12,7 @@ def plot_orthodrome(phi0, lam0, tht0): for p in range(-90, 91): points.append(obliquify(math.radians(p), tht0, phi0, lam0)) plot(points, close=False) - + def generate_orthodromes(): """generate an icosohedral orthodromic mesh, like the Brilliant logo (#notsponsored)"""