in reply to Re^2: Permutation and comparison loop
in thread Permutation and comparison loop
This is no problem
All you have to do is be careful how you define your min and max longitude. If an area starts at longitude 350 and is 20 clicks wide going to 10, then your minimum longitude is 350 and max is 10. The same algorithm works that either I and BrowserUk provided
If your data is defined so that it gives you a range of 350-370, then all you need to is take modulus 360 of your data ($max = $max % 360). Same thing is true if it's -10 to 20 ($min = $min % 360).
There's no reason to touch latitudes, as they won't ever be outside of the -90 to 90 range.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Permutation and comparison loop
by BrowserUk (Patriarch) on Apr 21, 2011 at 09:43 UTC | |
by wind (Priest) on Apr 21, 2011 at 14:05 UTC | |
by BrowserUk (Patriarch) on Apr 21, 2011 at 15:21 UTC |