Another prod...
You have two values, if the sum of the two values (each in the range 0-180, and ignoring if they're positive or negative) are equal to or greater than 180, then simply change the reference point.
Alternatively, how about this simplest solution... forget North, South or whatever, your reference point 'floats' - it's one of your two values (each 0-359)... ValueB is X degrees away from ValueA. So simply halve the difference and always add to ValueA. Note, that your choice of which value is ValueA is important... but then I'd be giving it away... once again it's something about if the difference is greater than 180...
Well there's two potential solutions... need any more?




Bookmarks