Example #1
0
 public void TestAverageAround180()
 {
     Assert.AreEqual(180, AngleMath.Average(new float[] { 180, 181, 182, 183, 184, 185, 179, 178, 177, 176, 175 }));
 }
Example #2
0
 public void TestAverage()
 {
     Assert.AreEqual(5f, AngleMath.Average(new[] { 350f, 20f }), 0.0001);
 }