I looked at some solutions here but none provide what I need, so:
I need to average an array of angles(0 to 359.9, no negatives)
(A1 + A2 + A3 + An) / n
The issue is when you get an array {1, 359, 2, 358} the average if you use the formula above is 180, but actually it is supposed to be 0.
Any thoughts?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…