public void TestAverage() { Vector2 mean = VecmathUtil.Average(new[] { new Vector2(0.5, 0.5), new Vector2(0.5, -0.5) }); Assert.AreEqual(0.5, mean.X, 0.01); Assert.AreEqual(0, mean.Y, 0.01); }
public void TestAverage() { Vector2 mean = VecmathUtil.Average(new[] { new Vector2(0.5, 0.5), new Vector2(0.5, -0.5) }); Assert.AreEqual(0.5, mean.X, 0.01); Assert.AreEqual(0, mean.Y, 0.01); }