Hi Karol,
You're welcome ...
Really, no rocket science here ..LoL
The code just normalises the substraction between 0 and 360, and substracts 360 if the difference is > 180.
As said, a familiar problem....
I stumbled onto it years ago for a simular application, and (like you) spent a few hours trying to realise why it sometimes worked and sometimes not .......
Cheers, Rob
You're welcome ...
Really, no rocket science here ..LoL
The code just normalises the substraction between 0 and 360, and substracts 360 if the difference is > 180.
As said, a familiar problem....
I stumbled onto it years ago for a simular application, and (like you) spent a few hours trying to realise why it sometimes worked and sometimes not .......
Cheers, Rob


