View Single Post
02-11-14, 04:22 PM   #20
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
Lets say the values are 14, 6, 340

The intented result for the second 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

Last edited by Duugu : 02-11-14 at 04:30 PM.
  Reply With Quote