Originally Posted by Duugu
Skiping it was not meant as an offense. Sorry for that.
Actually it does not exactly the same as it doesn't takes the 0/360 degree threshold into account.
|
Based off your intended use your values should not exceed the +/-90 degree range, so if your array contained -7 instead of 353 it would work just fine. That pushes the problem boundary to the 180 degree area where your values should never realistically be. You're not taking full advantage of the available ways to store what you have and are trying to create a needlessly complex system to compensate for it.