summaryrefslogtreecommitdiff
path: root/test/test-environment.cpp
Commit message (Collapse)AuthorAge
* Move getSunPos to EnvironmentDan Goodliffe3 days
|
* Update getSunPos to use a standard time_tDan Goodliffe5 days
|
* Add new mathematical constants to libDan Goodliffe5 days
|
* Initial commit of code for calculating sun positionDan Goodliffe6 days
Given the longitude and latitude, and a time into 2024, calculate the relative sun position suitable for providing lighting angles. Based on code from https://www.psa.es/ Loosely checked against https://www.pveducation.org/ and its close, working on faith really, but the numbers look plausible. Could do with a tidy up!