Thread Tools Display Modes
Prev Previous Post   Next Post Next
02-11-14, 04:26 PM   #30
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
 

WoWInterface » Developer Discussions » General Authoring Discussion » I need an idea, approach or algorithm to solve an development issue


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off