polar -> cartesian -> average -> polar looks the chain of keywords for that matter. And being sailor I wonder whether wind speed matters as well, even though direction has nothing to do with it ... until I'm on the water wanting to go somewhere particular. (It works as well without coordinate transformation... because trigonometric libraries weigh heavy... but it gets a bit messy... and in both cases, any calculation fails when trying to find the average between opposite directions... ;-)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
polar -> cartesian -> average -> polar
looks the chain of keywords for that matter. And being sailor I wonder whether wind speed matters as well, even though direction has nothing to do with it ... until I'm on the water wanting to go somewhere particular. (It works as well without coordinate transformation... because trigonometric libraries weigh heavy... but it gets a bit messy... and in both cases, any calculation fails when trying to find the average between opposite directions... ;-)