mattsemar / dsp-bulldozer

Automates placing foundation on every square of planet
2 stars 4 forks source link

Integer degrees for latitude and longitude limits for regions isn't precise enough to match the grid #23

Open MrNukealizer opened 2 years ago

MrNukealizer commented 2 years ago

Each position on the build grid is 0.36° apart (250 tiles per 90°), so a 1° increment in latitude or longitude encompasses 2-3 tiles on the grid. That makes it impossible to precisely match latitudes to tropics or longitudes to meridians when coloring regions, and also somewhat affects the min/max latitude for coverage.

Also, the limits seem to be rounded differently on the north and south sides of a planet. Trying to paint a region from -29° to 29° latitude doesn't include the band of tiles south of the tropic at -28.8° but does include the band north of the tropic at 28.8°.

MrNukealizer commented 2 years ago

I've found a way to fix these issues. I'll put in a PR once I've tested it enough to be sure I didn't add any bugs.