kylebarron / viewshed.js

Implementation of viewshed algorithm in JS
MIT License
1 stars 1 forks source link

Use cheap-ruler for distance computations #7

Open kylebarron opened 4 years ago

kylebarron commented 4 years ago

If I use a variable error condition C_t depending on distance from the observer, I don't necessarily want to do the computations in pixel-units/mercator-meter units, but haversine computations are unnecessarily expensive.

Cheap-ruler makes these computations fast and accurate.