View Single Post
02-12-14, 09:14 AM   #25
Vrul
A Scalebane Royal Guard
 
Vrul's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 404
Originally Posted by Malsomnus View Post
Suppose the values are 170, 185, 160? Then you turn it into 170, -175, 160, and have the same problem, because circles have no magic spots on them that makes problems go away, on account of being perfectly symmetrical.
The intended use is to have an action bar follow the tangent line of a function. An action bar should not be upside down which is what values around 180 degrees would do. So if you stick to +/- 180 degree values you no longer need to check for the 0 - 360 degree boundary.

If his values were for something that did make full use of 360 degrees then sure you will have a point where you need special case handling. Since that is not the case then you use that knowledge to make the data and code easier to work with.

That said, I still think he should post the code that is giving him those values so that it can be tweaked instead of trying to "smooth" it out. By changing the values used he is effectively just using a different base function so why not use that different function from the outset?
  Reply With Quote