abrogley / pptool

Route finding tool for Pocket Planes
GNU General Public License v3.0
0 stars 0 forks source link

getMidpointBetween should accept doubly bracketed locations #11

Open abrogley opened 8 years ago

abrogley commented 8 years ago

e.g., if midpt is [[5000, 7000]], we should not need to do this:

distFromMidpt1 = airports.getDistanceBetween(midpt[0], nearestToMidpt1)

And this should be acceptible:

distFromMidpt1 = airports.getDistanceBetween(midpt, nearestToMidpt1)