View Single Post
02-11-14, 04:26 PM   #21
Malsomnus
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Apr 2013
Posts: 203
Originally Posted by Duugu View Post
Lets say the values are 14, 6, 340

The intented result for the second degree value would be 357.

Using Resike's code
Lua Code:
  1. degrees[i] = (degrees[i - 1] + degrees[i + 1]) / 2
the value would be

(14 + 340) / 2 = 177
This sort of simple averaging is terrible even if you do solve the angle issue and would warp your data completely...
__________________
SanityCheck - If you've ever said the words "Sorry, I forgot" then you need this add-on.

Remember, every time you post a comment on an add-on, a kitten gets its wings!
  Reply With Quote