Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
r.horizon: get rid of global variables and other refactoring (OSGeo#3346
) Refactored r.horizon to make it possible to extend it in the future (e.g. multiple coordinates, parallelization, etc.), Refactoring includes * removing most global variables and reorganizing them into structures depending on when the variables change and when they don't, e.g. member variables in new struct OriginAngle are constant for each origin point and angle computed. * reducing the scope of some local variables * renaming/reorganizing some functions * reducing the code duplication between the point and raster mode * removing unused functions * addressing cppcheck complaints * adding a test comparing values of raster mode result with point mode results for couple points I tried not do any changes that could impact results, e.g. there is still some discrepancy in how maxlength is computed for the modes.
- Loading branch information